Sublime Forum

Scala sublime-syntax

#1

Hi, my scala sublime-syntax is available on PackageControl.
You’ll need to have build > 3084 to make it work.

Among the main features:

  • improved detection of operators, class, builtin method

  • handling of complex or unicode names

  • correct coloration of string interpolation

  • better symbol detection (ctrl+r to see symbols)

The sources are available on Github.

I try to used the same scopes than bathos ECMAscript syntax.
To take a full profit from the new syntax, you’ll probably need to change your color sheme, but it should work fine with most of them.

Here a two old screenshots that shows the improvement between the builtin Scala syntax and mine, with an unmodified color scheme:
Builtin:

Scala Sublime Syntax:

Link to the package control page: https://packagecontrol.io/packages/Scala%20Syntax

0 Likes

#2

Looks great gwenzek, very cool to see that you used the same brace scopes – maybe with a few such definitions out there we’ll start to see general themes that take advantage of it.

0 Likes

#3

Actually I took a lot of inspiration from your Ecmascript syntax, so thank you.
I tried to stick to your scopes has much as possible.

I think this whole scope naming convention could use some official directives.

0 Likes

#4

Awesome!

Have you thought much about submitting it to the default packages? github.com/sublimehq/Packages/tree/master/Scala

0 Likes

#5

Yes, I thought about it,
but I’d like to give it some time in order to find more bugs,
before proposing it as a Default Package.

0 Likes