mirror of
https://github.com/helix-editor/helix
synced 2026-01-26 05:38:09 +01:00
The gbprod grammar is more complete and featureful than mine, and more actively maintained. I will archive my tree-sitter-git-commit in favor of gbprod's. The new queries are based on the ones in the repo upstream but I modified them to look similar to the highlights before this commit. Also I've updated the tab-width so that change nodes in the generated message are indented correctly.
19 lines
621 B
Scheme
19 lines
621 B
Scheme
[(comment) (generated_comment) (scissor)] @comment
|
|
(subject) @markup.heading
|
|
(branch) @string.special.symbol
|
|
(filepath) @string.special.path
|
|
(arrow) @punctuation.delimiter
|
|
(subject (subject_prefix) @function)
|
|
(prefix (type) @keyword)
|
|
(prefix (scope) @variable.parameter)
|
|
(prefix [ "(" ")" ":" ] @punctuation.delimiter)
|
|
(prefix "!" @punctuation.special)
|
|
(trailer (token) @variable.other.member)
|
|
(trailer (value) @string)
|
|
(breaking_change (token) @special)
|
|
|
|
(change kind: (new)) @diff.plus
|
|
(change kind: (deleted)) @diff.minus
|
|
(change kind: (modified)) @diff.delta
|
|
(change kind: [(renamed) (typechange)]) @diff.delta.moved
|