aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/udev/highlights.scm
blob: f95238d70fbee3f4a5f809dcbafcd53d37743971 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
(match
  key: _ @keyword)

(assignment
  key: _ @property)

(value) @string

; NOTE: higher priorities override bash highlights
((fmt_sub
  .
  _ @character.special)
  (#set! priority 101))

((var_sub
  .
  _ @variable.builtin)
  (#set! priority 101))

[
  (system_const)
  (run_type)
  (import_type)
  (kernel_param)
  (seclabel)
] @attribute

((attribute) @attribute
  (#set! priority 101))

((env_var) @constant
  (#set! priority 101))

((pattern) @string.special
  (#set! priority 101))

([
  "\\\""
  (c_escape)
] @string.escape
  (#set! priority 101))

(octal) @number

((number) @number
  (#set! priority 101))

[
  (match_op)
  (assignment_op)
] @operator

("+" @punctuation.special
  (#set! priority 101))

([
  "{"
  "}"
] @punctuation.bracket
  (#set! priority 101))

[
  ","
  (linebreak)
] @punctuation.delimiter

(comment) @comment @spell