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

Improve handling of receiver types #155

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gonzojive
Copy link

Fixes #153 by using receiver_type.

  • I'm not too familiar with grammar-writing, so I'm unsure if my fixes here are ideal.
  • function_type has been updated to more closely match the official grammar for functionType.
  • [$.receiver_type], [$.receiver_type, $._type], have been added to the conflicts list. Adding these conflict entries made previously error-generating Kotlin inputs non-error-generating with sensible parse trees. It's unclear if this is the best strategy for specifying the grammar.

Draft mode because this also includes changes from #152.

@github-actions github-actions bot added the grammar Related to the grammar label Oct 9, 2024
@gonzojive gonzojive marked this pull request as ready for review October 18, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Related to the grammar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tree-sitter-kotlin fails to parse functionType within "val x: Foo.Bar.() -> Unit = {}"
2 participants