Abhinav Singh

Results 6 issues of Abhinav Singh

Hi folks, thank you for creating this brilliant package! I was parsing some java code when I noticed some errors. tree-sitter: 0.25.4 tree-sitter-java: 0.23.5 Sample code that is breaking: ```...

#### Fix unicode backslash escaped double quote in string and char literals Closes https://github.com/tree-sitter/tree-sitter-java/issues/209 As described in JLS: https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.2, the translation for unicode escapes happens before parsing. Hence this is...

#### Fix type use annotations before spread parameter Closes https://github.com/tree-sitter/tree-sitter-java/issues/205 The original fix was here https://github.com/tree-sitter/tree-sitter-java/pull/195/commits/0d79d9fe934a5f159e3136c64388c5b94f750a0a but there's a typo in that. Java doesn't allow annotations after the ellipsis at...

Sample: ``` try { } catch (T1 | @A3 T2 e) { } ``` ``` program [0, 0] - [3, 0] try_statement [0, 0] - [2, 1] try [0, 0]...

``` class Scratch { public static void main(String[] args) { char c = '\u005c''; String s = "\u005c""; System.out.println(c); System.out.println(s); } } ``` This is a working java code snippet....

The character `A` can be represented as `\uuu0041`. I noticed that it parses for character literals correctly but not string literals. ``` '\uuu0041'; ``` ``` program [0, 0] - [1,...