Open coreywoodfield opened 4 months ago
Printing with backticks would solve related tickets in REPL and autocomplete.
attn @lrytz
We could special case keywords (80 / 20), that idea is in tree printers https://github.com/scala/scala/blob/v2.13.12/src/reflect/scala/reflect/internal/Printers.scala#L34.
Alternatively sprinkle the BackquotedIdentifierAttachment
attachement more widely. @som-snytt wdyt?
Either way, I don't see this as a blocker for 2.13.13.
Reproduction steps
Scala version: 2.13.12
In Test.scala:
When you run
scalac -quickfix:any -Xsource:3 Test.scala
, the file gets updated towhich does not compile (the
val
in the type should be surrounded with backticks)Problem
Quickfixes should escape keywords as needed