scala / vscode-scala-syntax

Visual Studio Code extension for syntax highlighting Scala sources
https://marketplace.visualstudio.com/items?itemName=scala-lang.scala
MIT License
76 stars 35 forks source link

Quoted blocks with spaces fail to parse `' {` #226

Closed lolgab closed 2 years ago

lolgab commented 2 years ago

Quoted code with spaces between the ' symbol and the { open brace, while being parsed correctly by the Scala compiler, are not parsed by vscode-scala-syntax, creating a all red coloring in VSCode and Github: example

nicolasstucki commented 2 years ago

This should actually not parse. You discovered a bug (lampepfl/dotty#13951).

The red coloring is expected as it is syntactically assumed to be an illegal Char. See https://github.com/scala/vscode-scala-syntax/blob/main/src/typescript/Scala.tmLanguage.ts#L859-L864