Skip to content

Using tree-sitter-highlight for syntax highlighting? #16

Open

Description

@liz3

The highlighting "engine" i wrote for ledit is not very efficient and buggy, its entirely custom and i had to implement monkey patch fixes to keep it "performant" on files with more then 5000 lines, f you dont activate highlighting the file size does not affect performance since the editor operates on a list of strings and so moving around the cursor is very cheap and editing just depends on the current line length.
Im considering reusing tree-sitter-highlighting to make it more efficient, the issue is that the parsers for languages are often several mb of c code which would explode the executables size which i would dearly like to avoid

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions