- Notifications
You must be signed in to change notification settings - Fork109
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 totreesitter via thescanner.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
psteinroe left a comment
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!
4a62cc0 intomainUh oh!
There was an error while loading.Please reload this page.
This also made it possible to upgrade to treesitter
0.25.X– I only had to adjust two lines inpgt_treesitter/context/mod.rs. :)