aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/toml/highlights.scm
blob: e0a3d6a1bb36b5195d4617ad9a10fb4b9a23fbea (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
; Properties
;-----------

(table [
  (bare_key)
  (dotted_key)
  (quoted_key)
] @type)

(table_array_element [
  (bare_key)
  (dotted_key)
  (quoted_key)
] @type)

(pair [
  (bare_key)
  (dotted_key)
  (quoted_key)
] @variable.other.member)

; Literals
;---------

(boolean) @constant.builtin.boolean
(comment) @comment
(string) @string
(integer) @constant.numeric.integer
(float) @constant.numeric.float
(offset_date_time) @string.special
(local_date_time) @string.special
(local_date) @string.special
(local_time) @string.special

; Punctuation
;------------

"." @punctuation.delimiter
"," @punctuation.delimiter

"=" @operator

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