1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 19:00:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/git_config/highlights.scm

50 lines
600 B
Scheme
Vendored

; Sections
(section_name) @type
((section_name) @include
(#eq? @include "include"))
((section_header
(section_name) @include
(subsection_name))
(#eq? @include "includeIf"))
(variable (name) @property)
; Operators
[
"="
] @operator
; Literals
(integer) @number
[
(true)
(false)
] @boolean
(string) @string
((string) @text.uri
(#lua-match? @text.uri "^[.]?[/]"))
((string) @text.uri
(#lua-match? @text.uri "^[~]"))
(section_header
[
"\""
(subsection_name)
] @string.special)
; Punctuation
[ "[" "]" ] @punctuation.bracket
; Comments
(comment) @comment @spell