atom / language-java

Java package for Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax highlighting is broken with array syntax

Yanpas opened this issue · comments

Prerequisites

I'm using vscode (https://github.com/microsoft/vscode/blob/master/extensions/java/syntaxes/java.tmLanguage.json) and syntax version 2e179ce

Description

Snippet:

        for (int i = 0; i==0;){
            
        }
        String[] aaa = new String[] {
            String.class.toString(),
            "aaaa",
            "bbb",
        };
        for (int i = 0; i==0;){

        }

image

See also redhat-developer/vscode-java#728

commented

Cannot reproduce on the master branch. This seems to have been fixed by #215, at least, this is what git tells me, thus the version of vscode for which the bug was reported was likely using a different version of language-java package.