tree-sitter-java
tree-sitter-java copied to clipboard
Java grammar for tree-sitter
### Problem description Tree sitter gives wrong lines number for method declaration (both start and end lines). The lines for methods are completely broken for the give file. ### Expected...
### Problem description The class literal pattern, _e.g._ `String.class` gets interpreted as a field access. For the following snippet: ```java class C { Class x = String.class; } ``` ###...
Self-explanatory image attached. In this specific case, "implements" would be purple and the types would be red. 
Why is there no `scanner.c` in this repo, which is not required for Java to get dynamic link libraries?
### Problem description Testing a fresh build of this repository I found that it fails to parse a piece of code that the current online playground parse fine (as pointed...
# Description Restrict top level declarations and the declarations permitted as statements. In doing so we also provide improved support for unnamed classes at the top level, and we clearly...
The following piece of code currently produces the syntax tree below. Notice that the escape sequence for `\s` is just swallowed. I guess the solution is that the allowed characters...
### Problem description When parsing a badly-written code, I'd expect treesitter to have an error. For example: ``` public class cl1 { ``` yields a "MISSING" error at the end:...
These bindings are not (yet?) included in the template. The `pom.xml` includes the required metadata and plugin for publishing to Maven Central via the new [Central Portal](https://central.sonatype.org/publish/publish-portal-maven/). The bindings can...