Sublime Forum

Error in syntax highlighting with quotes (ignoring first " mark)

#1

I am writing some java code and it is not recognizing the first quotation mark as the start of a string, and thus starts highlighting the code after second quotation mark as a string.

This is Dev Channel Build 3136

Code is
> System.out.println("Enter 10 integers to average: ");
> userinput = scanner.nextLine();

0 Likes

#2

I’m guessing it expects your statements to be inside a method. You can log an issue at https://github.com/sublimehq/Packages/issues

EDIT: it works for me on build 3136, maybe you have overridden the syntax definition or are using a third party one or something?

0 Likes