summaryrefslogtreecommitdiffstats
path: root/queries/git_config/highlights.scm
blob: 18b75bc6430a705bf853ecfc84d79a8d84afd5c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; 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