Skip to content

Scala 3 highlighting broken #1892

Open
Open
@b-studios

Description

@b-studios

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:

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/scala.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/java.min.js" type="text/javascript"></script>

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