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

(operator) @operator

(integer_literal
  "-" @operator)

[
  ","
  ":"
] @punctuation.delimiter

[
  "("
  ")"
  "["
  "]"
  "{"
  "}"
] @punctuation.bracket

(boolean_literal) @boolean

(integer_literal) @number

[
  (raw_string_literal)
  (interpreted_string_literal)
] @string

(escape_sequence) @string.escape

(identifier) @variable

(module
  type: (identifier) @function.call)

(module
  (property
    field: (identifier) @variable.parameter))

[
  (unset)
  (default)
  (any)
] @variable.builtin

(condition
  name: (identifier) @function.builtin)

(map_expression
  (property
    field: (identifier) @property))

(select_expression
  "select" @keyword.conditional)