aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/gitignore/highlights.scm
blob: aafbe541ec180c192ec5b8021a3cbfaaa99d6b7f (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
(comment) @comment @spell

(pattern_char) @string.special.path

[
  (directory_separator)
  (directory_separator_escaped)
] @punctuation.delimiter

[
  (wildcard_char_single)
  (wildcard_chars)
  (wildcard_chars_allow_slash)
] @character.special

[
  (pattern_char_escaped)
  (bracket_char_escaped)
] @string.escape

(negation) @punctuation.special

(bracket_negation) @operator

; bracket expressions
[
  "["
  "]"
] @punctuation.bracket

(bracket_char) @constant

(bracket_range
  "-" @operator)

(bracket_char_class) @constant.builtin