java.tmbundle icon indicating copy to clipboard operation
java.tmbundle copied to clipboard

Incorrect Java syntax highlighting for parentheses inside strings inside parentheses beginning a new line

Open aeschli opened this issue 7 years ago • 1 comments

From @david-russo on October 11, 2016 10:38

  • VSCode Version: 1.6.0
  • OS Version: Windows 7 (64-bit)

Steps to Reproduce:

  1. Open a new file a select the Java language mode
  2. Paste the following code into the editor:
new String 
    ("(A)" + "B");
new String("Following line");

"String", the quoted string literal, and all syntax following this line will be miscoloured. Compare:

new String("(A)" + "B");
new String("Following line");

java-syntax-highlighting-problem

Interestingly, GitHub's colourizer also seems to suffer from the same issue.

Copied from original issue: Microsoft/vscode#13489

aeschli avatar Oct 11 '16 15:10 aeschli