-
Notifications
You must be signed in to change notification settings - Fork 107
chore: replace tree-sitter submodule with internal crate #527
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
Conversation
| @@ -0,0 +1,188 @@ | |||
| #include "tree_sitter/parser.h" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not autogenerated, but copied from the derek stride repo.
You can add context-aware parsing to treesitter via the scanner.c file.
This is only necessary for parsing dollar-quoted strings $tag$ select 1; $tag$
| @@ -0,0 +1,3405 @@ | |||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also copied from the derek stride repo, I just added JSDoc types and fixed some linting errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
This also made it possible to upgrade to treesitter
0.25.X– I only had to adjust two lines inpgt_treesitter/context/mod.rs. :)