Migrate to tree-sitter-language-pack: expand language support#8
Draft
gohanlon wants to merge 1 commit into
Draft
Migrate to tree-sitter-language-pack: expand language support#8gohanlon wants to merge 1 commit into
gohanlon wants to merge 1 commit into
Conversation
…ress maintenance Resolves Aider-AI#7. This commit replaces the tree-sitter language pack from grantjenks/py-tree-sitter-languages with Goldziher/tree-sitter-language-pack, significantly expanding language support and addressing maintenance issues. Key changes include: 1. Greatly increases the number of supported languages, including Swift and Svelte. 2. Resolves dependency on an unmaintained package that was forcing grep-ast to use an old tree-sitter version (0.21). 3. Unlocks the ability to use more recent tree-sitter versions. 4. Updates requirements.txt to use tree-sitter-language-pack>=0.2.0. 5. Increments the version number to 0.3.4-dev in setup.py. 6. Adds extensive test cases for parsing various languages in test_parsers.py. Notable changes: - Removed support for DOT, OCaml, ql (GitHub CodeQL), and tsq (Tree Sitter Query) due to their absence in the new pack. - Removed potentially incorrect mappings for .gomod, .sqlite, and .regex extensions. - Replaced the uncommon ".et" mapping for "embeddedtemplate" with mappings for ERB and EJS, which are common uses of embedded templates. - Re-enabled markdown as the new pack uses to a different markdown grammar that likely doesn't suffer from previous bugs.
|
I think TSLP support is merged; can this be closed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP; Resolves #7.
This replaces the tree-sitter language pack from grantjenks/py-tree-sitter-languages with Goldziher/tree-sitter-language-pack, significantly expanding language support and addressing maintenance issues. Key changes include:
Notable changes: