Sublime Forum

Build 4200 syntax highlighting for Scala is broken

#1

And “Goto Definition F12” does not work. It fails after simple expressions like s"$n ${v}${if (n == 1) "" else "s"}" and many others. Is it possible to switch to highlighter from previous build?

0 Likes

#2

It is possible to revert to old syntax by simply using former ST’s Scala.sublime-package, but maybe it would be more streight forward to open issue(s) with some example code snippets which don’t work at https://github.com/sublimehq/Packages/issues. Maybe those can be fixed with reasonable efforts.

Current Scala syntax adds various fixes for Scala 3, which might be worth keeping and improving.

A fix for your very specific issue is proposed at

1 Like

#3

Thanks, this fix works for me. All other problems I checked where related and are resolved, too.

0 Likes