Christian Clason
Christian Clason
> https://github.com/tree-sitter/tree-sitter-typescript/blob/73c4447796b251295b498227bad028d88dc1918b/queries/highlights.scm#L6-L7 We don't use those queries but maintain our own in this repo. Please check those. And the `Constant` link is part of your colorscheme, so you need to...
The `Constant` was just in case the color was the issue. And, yes, variables that start with a capital letter are intentionally captured as `@type`; that seems to be common...
If you have a more robust solution, PR is welcome! Queries are user-contributed and best-effort.
Follow the `; inherits` chain at the top of the `highlights.scm`.
@amaanq I think this is still an issue that should be tracked; see linked Neovim issue.
Note that the behavior has changed since then; just put your query earlier (!) in runtimepath, no modeline needed.
> This works to override an entire query, but I think it would still be useful to have something along the lines of ; extends – in other words, a...
https://github.com/neovim/neovim/pull/26303 if you're curious
Closing as stale. A new PR (from a feature branch, not master!) would be welcome.
> Open question: How are the neovim folks (or other editor communities) doing tree-sitter syntax highlighting? I have to assume if they were doing the above we would have had...