Skip to content

Add some way to override the existing queries bundled with the packageΒ #50

Open
@mohkale

Description

@mohkale

I recently upgraded tree-sitter-langs (after a few months) and I've noticed quite a lot of the syntax highlighting has been improved in places. However in some cases I also find it kind of overbearing.

For example in shell script mode command flags are highlighted as constants, variables are also properties, commands invocations are function calls, etc.

Screenshot_20211009_193524

While it would be easy enough to modify the queries bundled with this repo, there's no easy way to persist those changes into my emacs dotfiles without maintaining a fork of this project. I think it'd be nice if tree-sitter-langs had a local directory variable users can set and if a query is defined there then it uses that query instead of the one bundled with this repo. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions