aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/ron/highlights.scm
blob: 96507323ba21f89d7ef570c065d00c41c1de1165 (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
; Structs
;------------
(enum_variant) @constant

(struct_entry
  (identifier) @variable.member)

(struct_entry
  (enum_variant
    (identifier) @constant))

(struct_name
  (identifier)) @type

(unit_struct) @type.builtin

; Literals
;------------
(string) @string

(boolean) @boolean

(integer) @number

(float) @number.float

(char) @character

; Comments
;------------
[
  (line_comment)
  (block_comment)
] @comment @spell

; Punctuation
;------------
[
  "{"
  "}"
] @punctuation.bracket

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

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

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

"-" @operator

; Special
;------------
(escape_sequence) @string.escape