-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
tree-sitter returns lots of overlapping highlights, which need to be filtered by priority to get the 'correct' highlights for a string. The old single-highlighter system just used the last value found for a range, meaning an overlap of 0..<3=.comment, 0..<3=.spell would just highlight as .spell.
To Reproduce
N/A
Expected Behavior
The new highlighting system uses the first found value, the tree-sitter implementation should be updated to not rely on the semantics of the highlighter system and instead return non-overlapping highlights.
Version Information
CodeEditSourceEditor: 0.8.1
Additional Context
- Highlights returned by
SwiftTreeSitterare already ordered: https://github.com/ChimeHQ/SwiftTreeSitter?tab=readme-ov-file#query-conflicts
Screenshots
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
🏁 Complete