Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Small grammar edits for querying. #43

Open
3 of 4 tasks
SalBakraa opened this issue Dec 27, 2021 · 0 comments
Open
3 of 4 tasks

[Request] Small grammar edits for querying. #43

SalBakraa opened this issue Dec 27, 2021 · 0 comments

Comments

@SalBakraa
Copy link
Contributor

SalBakraa commented Dec 27, 2021

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:

  • Unhide the _line_str_escaped_char and _escape_seq, so that escape sequences can be queried
  • !is and ?. are not possible to be queried since they are locked behind the _not_is and _safe_nav rules, unlike is, ?:, in,!in and so on.
  • Separate the labels from labeled jump_expressions. Could be done by adding a simple_identifier child node to jump_expression
  • anonymous function parameters and return type are marked as ERROR nodes in the syntax tree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant