docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

Scala 3 highlighting broken

Open b-studios opened this issue 4 years ago • 0 comments

There is a few problems with syntax highlighting of Scala3:

Most of them can be seen on this page: https://docs.scala-lang.org/scala3/guides/macros/macros.html

Keywords not highlighted as keywords:

  • inline
  • then

Other problems:

  • quotes are recognized as character-start

We should look at the vscode grammar and tests: https://marketplace.visualstudio.com/items?itemName=scala-lang.scala

HighlightJS is included here: https://github.com/scala/docs.scala-lang/blob/d6e14d1b683df910998f6545bb860ea514295ceb/_includes/footer.html#L42-L44

b-studios avatar Jan 12 '21 13:01 b-studios