Invalid Query for Java
Closed this issue · 3 comments
505aaron commented
I am seeing the following error:
tsc-make-query: Query contains invalid node type: "line_comment", (66 . 3), 1504
It looks like changing this:
https://github.com/meain/evil-textobj-tree-sitter/blob/master/queries/java/textobjects.scm#L65-L68
to this works:
(comment) @comment.outer
I don't have full context here, otherwise I would change it myself.
meain commented
The issue is that line_comment
is a new addition to the java grammar and is not currently available in emacs-tree-sitter/tree-sitter-langs. I have opened a pr at emacs-tree-sitter/tree-sitter-langs#110 to fix this.
meain commented
This should now be fixed upstream.