tree-sitter-kotlin
tree-sitter-kotlin copied to clipboard
[Request] Small grammar edits for querying.
Hi,
I am trying to write a highlights.scm query file for this parser so that it works with nvim-treesitter in-place of the current kotlin parser that is shipped with it. The edits needed for this would be:
- [x] Unhide the
_line_str_escaped_charand_escape_seq, so that escape sequences can be queried - [x]
!isand?.are not possible to be queried since they are locked behind the_not_isand_safe_navrules, unlikeis,?:,in,!inand so on. - [ ] Separate the labels from labeled
jump_expressions. Could be done by adding asimple_identifierchild node tojump_expression - [x] anonymous function parameters and return type are marked as
ERRORnodes in the syntax tree