fix(treesitter): document more standard highlight groups

Problem: Not all standard treesitter groups are documented.

Solution: Document them all (without relying on fallback); add default
link for new `*.builtin` groups to `Special` and `@keyword.type` to
`Structure`. Remove `@markup.environment.*` which only made sense for
LaTeX.
This commit is contained in:
Christian Clason
2024-03-03 11:18:34 +01:00
parent 5e875ae8d0
commit c30ebb17f6
4 changed files with 50 additions and 35 deletions

View File

@@ -223,7 +223,8 @@ static const char *highlight_init_both[] = {
"default link DiagnosticUnnecessary Comment",
// Treesitter standard groups
"default link @variable.builtin Special",
"default link @variable.builtin Special",
"default link @variable.parameter.builtin Special",
"default link @constant Constant",
"default link @constant.builtin Special",
@@ -248,8 +249,9 @@ static const char *highlight_init_both[] = {
"default link @type Type",
"default link @type.builtin Special",
"default link @attribute Macro",
"default link @property Identifier",
"default link @attribute Macro",
"default link @attribute.builtin Special",
"default link @property Identifier",
"default link @function Function",
"default link @function.builtin Special",
@@ -282,7 +284,8 @@ static const char *highlight_init_both[] = {
"default link @diff.minus Removed",
"default link @diff.delta Changed",
"default link @tag Tag",
"default link @tag Tag",
"default link @tag.builtin Special",
// LSP semantic tokens
"default link @lsp.type.class @type",