language-scala icon indicating copy to clipboard operation
language-scala copied to clipboard

Syntax highlight bug: `/*`()

Open mkantor opened this issue 7 years ago • 0 comments

The following code gets highlighted incorrectly:

def `/*`() = ()
`/*`()

The second /* is being treated as if it were the start of a block comment, even though it's inside backticks.

Demo.

This exact same bug is present in the Scala TextMate bundle (mads-hartmann/scala.tmbundle/issues/58), which is currently used by Linguist, so you'll see the same problem in the code block above.

mkantor avatar Nov 23 '17 03:11 mkantor