Sublime Forum

Scala syntax highlighting problem with /* in backticks

#1

Consider this file:

[code]object MediaRanges {
val */* = 42
}

object App {
val all = MediaRanges.*/*
List(1, 2, 3)
}
[/code]

In both ST 2.0.2 build 2221 and ST 3 build 3047, the initial val on line 2 is correctly highlighted but the reference to it on line 6 results in ST thinking a block comment has started. As a result, the rest of the file is rendered as a comment.

0 Likes