Skip to content

-indent mode removes quotes #9632

@etorreborre

Description

@etorreborre

Minimized code

  def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
    import qctx.tasty._
    '{
        $e+$e
     }

Output

  def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
    import qctx.tasty._
    '
        $e+$e

Expectation

That the expression stays unchanged

Workaround

Write

  def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
    import qctx.tasty._
    '{ $e+$e
     }

Where the quoted expression starts right after '{.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions