feat: enhance Rust tree-sitter parser with advanced language structures #2335
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.
Context
This PR enhances the Rust tree-sitter parser to support a comprehensive set of Rust language structures, significantly improving code definition extraction capabilities.
Implementation
Added support for additional Rust language structures:
Updated tests to verify capture of these structures
Modified debug helper to use environment variables for easier debugging
How to Test
Found 1 test suites
......
Ran 6 tests in 0.263 s
6 passing 0 failing 0 pending
Found 1 test suites
console.debug
content:
console.debug
content:
console.debug
content:
console.debug
content:
console.debug
content:
console.debug
content:
......
Ran 6 tests in 0.247 s
6 passing 0 failing 0 pending
Get in Touch
Discord: KJ7LNW
Important
Enhances Rust tree-sitter parser to support advanced Rust language structures and updates tests for comprehensive coverage.
rust.tsquery definitions to capture these structures.parseSourceCodeDefinitions.rust.test.tsto test parsing of new Rust structures.helpers.tsto use environment variables for debug logging.This description was created by
for d1f41ed. It will automatically update as commits are pushed.