Vscode-java: @interface breaks syntax highlighting

Created on 5 Aug 2019  路  6Comments  路  Source: redhat-developer/vscode-java

When adding a @annotation interface the syntax highlighting breaks

  • OSX 10.12.6
    All latest versions of date of writing

correct:
Screen Shot 2019-08-05 at 09 03 58

with annotation:
Screen Shot 2019-08-05 at 09 03 13

(Also using a $ will break the syntax of the return type).

bug highlighting upstream

Most helpful comment

It works now

Screen Shot 2019-11-21 at 3 49 55 PM

All 6 comments

This one is even worse, notice that the commented line is not commented at all:

Screen Shot 2019-08-05 at 10 11 14

It seems this only breaks when the @interface is not a top level type.

The issue needs to be reported for the upstream textmate grammar for Java that vscode embeds. See:

It works now

Screen Shot 2019-11-21 at 3 49 55 PM

Closing since this is fixed in latest VS Code

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawmanz32na picture shawmanz32na  路  3Comments

ViniciusAtaide picture ViniciusAtaide  路  4Comments

ronniehicks picture ronniehicks  路  3Comments

sfariaNG picture sfariaNG  路  3Comments

ulongx picture ulongx  路  4Comments