feat(tree-sitter): AST-based folding, symbols, bracket matching (#1008) [DRAFT]#1085
Draft
batonogov wants to merge 2 commits into
Draft
feat(tree-sitter): AST-based folding, symbols, bracket matching (#1008) [DRAFT]#1085batonogov wants to merge 2 commits into
batonogov wants to merge 2 commits into
Conversation
WIP — requires Xcode to add SPM dependencies: - SwiftTreeSitter - TreeSitterSwift, TreeSitterPython, TreeSitterRust, TreeSitterTypeScript 5 new files in Pine/TreeSitter/ (882 lines): - TreeSitterParser: background AST parsing on syntax-highlight queue - TreeSitterFoldProvider: structural fold ranges from AST nodes - TreeSitterSymbolProvider: function/class/struct outline from AST - TreeSitterBracketMatcher: AST-aware bracket pair highlighting - TreeSitterLanguageRegistry: language → parser mapping All types nonisolated + Sendable (Swift 6 compliant). check_nonisolated.py passes. NOTE: SPM packages not yet added to Package.resolved — needs Xcode. Opening as draft until dependencies are wired.
37 tasks
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.
Implements #1008 — Tree-sitter integration for structural code intelligence.
Status: DRAFT — requires Xcode
Code is written (882 lines, 5 files), but SPM dependencies are NOT wired. Adding SPM packages requires Xcode (we're on Linux). The following packages need to be added via Xcode > Add Package Dependencies:
SwiftTreeSitter(https://github.com/ChimeHQ/SwiftTreeSitter)TreeSitterSwiftTreeSitterPythonTreeSitterRustTreeSitterTypeScriptNew: Pine/TreeSitter/ (882 lines)
All types nonisolated + Sendable (Swift 6 compliant).
What it does NOT change
TODO