Mercurial > dotfiles
annotate dot_config/helix/runtime/queries/hgrc/highlights.scm @ 840:f3e87577dd3a
fix: sort keys from template dicts to determistically generate scripts
From http://masterminds.github.io/sprig/dicts.html
> The keys function will return a list of all of the keys in one or more dict types.
> Since a dictionary is unordered, the keys will not be in a predictable order.
> They can be sorted with sortAlpha.
This results in a different ordering of commands in the generated scripts
which break the hashing in chezmoi to determine whether the scripts needs to
be re-run.
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 02 Feb 2024 17:44:49 +0100 |
parents | 3dc425f9ac53 |
children |
rev | line source |
---|---|
826
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
1 (section |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
2 (name) @namespace) |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
3 |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
4 (option |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
5 (option_name) @keyword) |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
6 |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
7 (path) @string.special.path |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
8 (string) @string |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
9 (bool) @constant.builtin.boolean |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
10 |
b2e6175efcad
feat: add hgrc grammar and highlights
zegervdv <zegervdv@me.com>
parents:
diff
changeset
|
11 (comment) @comment |
828
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
12 |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
13 (template |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
14 "{" @punctuation.special |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
15 "}" @punctuation.special) |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
16 |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
17 (template (number) @number) |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
18 (template (bool) @constant.builtin.boolean) |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
19 |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
20 (function) @function |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
21 (keyword) @keyword |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
22 |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
23 (operator) @operator |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
24 |
2033a1460dbc
feat: add hg-commit and hgrc tree-sitter grammars and highlights
zegervdv <zegervdv@me.com>
parents:
826
diff
changeset
|
25 (string (escape) @constant.character.escape) |
830
3dc425f9ac53
feat: inject regex grammar into hgrc
zegervdv <zegervdv@me.com>
parents:
828
diff
changeset
|
26 |
3dc425f9ac53
feat: inject regex grammar into hgrc
zegervdv <zegervdv@me.com>
parents:
828
diff
changeset
|
27 (regex) @string |