helix-mods/runtime/queries/git-config/highlights.scm
Michael Davis e0a99ae51a
add tree-sitter-git-config (#1426)
* add tree-sitter-git-config

* add todo comment for improving filetype check
2022-01-09 22:10:20 +08:00

27 lines
550 B
Scheme

((section_name) @keyword.directive
(#eq? @keyword.directive "include"))
((section_header
(section_name) @keyword.directive
(subsection_name))
(#eq? @keyword.directive "includeIf"))
(section_name) @markup.heading
(variable (name) @variable.other.member)
[(true) (false)] @constant.builtin.boolean
(integer) @constant.numeric.integer
((string) @string.special.path
(#match? @string.special.path "^(~|./|/)"))
[(string) (subsection_name)] @string
[
"["
"]"
"\""
] @punctuation.bracket
"=" @punctuation.delimiter
(comment) @comment