Skip to content

🐞 tree-sitter Returns Overlapping Highlights #276

@thecoolwinter

Description

@thecoolwinter

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

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions