Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tnm
Copy link
Contributor

@tnm tnm commented Jul 25, 2025

This pull request introduces a version update for the cased-kit package, adds compatibility for newer versions of the tree-sitter library, and includes a new test to ensure the compatibility changes work as expected. Below are the most important changes grouped by theme:

Version Update:

  • Updated the version of cased-kit from 1.7.1 to 1.7.2 in both pyproject.toml and src/kit/__init__.py. [1] [2]

Compatibility Enhancements:

  • Modified extract_symbols in tree_sitter_symbol_extractor.py to support both legacy Query.matches and newer Query.captures APIs from tree-sitter. This ensures compatibility with tree-sitter versions >= 0.23.

Testing:

  • Added a new test file tests/test_tree_sitter_query_compat.py to validate the fallback behavior of extract_symbols when the Query.matches API is unavailable. This includes mock implementations of tree-sitter components and a test case for the newer Query.captures API.

@tnm tnm closed this Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant