-
Notifications
You must be signed in to change notification settings - Fork 348
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
Would using treesitter help here? #9
Comments
Yeah, I think it's worth exploring. Treesitter seems to have sufficient structure for my needs (e.g. including comments in the AST). Also, I'm already getting bored of parser fixes in syntax.toml :P I want to focus on getting the tree diffing logic solid at this point. Computing the changes and printing them in a coherent way is already non-trivial, and there's more work to do here. I will look at treesitter in future though. It would be a matter of converting the treesitter AST to difftastic's AST, and it should hopefully just work. |
FWIW difftastic now uses tree-sitter parsing by default :) |
## ts-parse Allows easy task to regen parser before running the normal parse Test of behavior of mix of `&&` and `{` / `}` in ts-parse - If bin/generate-parser fails, then ts-parse fails - If bin/generate-parser succeeds, then the parse result is output regardless of error status ## test-dir Makes more specific extension/header checking and adds some helpful info
🎨 Improve structure of the ast for literals
Towards to https://cmake.org/cmake/help/latest/manual/cmake-language.7.html, "\;" is also escape sequences
mixed_group addition and biblatex_include fix
Define 'name' field for /delete-node/ and /delete-property/
This also lays the ground work for fixing the priority for the binary operators in another PR. This closes sourcegraph/tree-sitter-jsonnet#6 test plan: make test
* chore[helix]: removed excessive queries which made highlighting worse * fix: Remove unwanted field
A large collection of language parsers, generates rust bindings, good performance and error recovery
The text was updated successfully, but these errors were encountered: