Sublime Forum

Proper syntax coloring for Java annotation type parameters

#1

Hi all, loving Sublime so far. One thing I did notice is that it seems to be confused when I write a Java method that accepts annotation types that come before the parameter type and name.

I’m using Spring Boot, so I’ll use that as an example:

You can see that for the first parameter @PathVariable String token, it seems to understand that String is the type and the rest are variable names or annotation directives. But for the following two parameters, it doesn’t seem to understand that and colors all the text the same way.

Another nit-picky thing, the first parameter token is all italicized and the other two use plain font decorations.

This doesn’t hinder my productivity or anything, but it seems to be a Sublime bug (unless I’m missing something), and was wondering if anyone else noticed it too.

Cheers!

0 Likes

#2

I believe this has been reported here:

and fixed in ST dev build 3150

0 Likes