tree-sitter-java icon indicating copy to clipboard operation
tree-sitter-java copied to clipboard

add support for multiline string

Open aymannadeem opened this issue 7 years ago • 2 comments

"This is a " +
    "two-line string";

currently results in the following parse tree:

 (program (string_literal) (string_literal) (string_literal) (ERROR (string_literal) (UNEXPECTED '+')) (string_literal)) 

aymannadeem avatar Dec 11 '17 21:12 aymannadeem

TS should also have support for Java 15 multiline strings (with triple quotes).

Tmpod avatar Oct 14 '21 11:10 Tmpod

This doesn't appear to happen in the version used in the playground for this input:

program [0, 0] - [3, 0]
  expression_statement [0, 0] - [1, 22]
    binary_expression [0, 0] - [1, 21]
      left: string_literal [0, 0] - [0, 12]
      right: string_literal [1, 4] - [1, 21]

raghav-deepsource avatar Nov 08 '21 12:11 raghav-deepsource

Any movement on this?

This looks fixed when I pulled an updated grammar and checked the JS file. Great!

stadelmanma avatar Mar 03 '23 16:03 stadelmanma