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

Add support for using keywords in type declarations #69

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

Conversation

nobodywasishere
Copy link
Member

Closes #39

Copy link
Collaborator

@keidax keidax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right way to go. It adds a lot of complexity to the scanner for relatively little gain.

I hope this is something we can resolve without needing the scanner at all. Have you looked at the reserved feature at all? You could also investigate how tree-sitter-javascript accomplishes this.

@nobodywasishere
Copy link
Member Author

Testing out the reserved feature, can't seem to get it to work, don't know what I'm doing wrong. Will look into this in a few days.

image

@nobodywasishere nobodywasishere marked this pull request as draft December 31, 2024 16:07
@nobodywasishere
Copy link
Member Author

Blocked by next release
tree-sitter/tree-sitter#3896

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

Successfully merging this pull request may close these issues.

type declaration with keywords
2 participants