aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/cpon/highlights.scm
blob: 9cc438ea5f42c0e152db4d6c3eb35420375047b4 (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
; Literals
(string) @string

(escape_sequence) @string.escape

(hex_blob
  "x" @character.special
  (_) @string)

(esc_blob
  "b" @character.special
  (_) @string)

(datetime
  "d" @character.special
  (_) @string.special)

(_
  key: (_) @property)

(number) @number

(float) @number.float

(boolean) @boolean

(null) @constant.builtin

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

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

[
  "["
  "]"
] @punctuation.bracket

[
  "<"
  ">"
] @punctuation.bracket

("\"" @string
  (#set! conceal ""))

; Comments
(comment) @comment @spell