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_char
and_escape_seq
, so that escape sequences can be queried - [x]
!is
and?.
are not possible to be queried since they are locked behind the_not_is
and_safe_nav
rules, unlikeis
,?:
,in
,!in
and so on. - [ ] Separate the labels from labeled
jump_expression
s. Could be done by adding asimple_identifier
child node tojump_expression
- [x] anonymous function parameters and return type are marked as
ERROR
nodes in the syntax tree