2021-04-09 12:42:49 +04:00
|
|
|
; Properties
|
|
|
|
;-----------
|
|
|
|
|
2023-06-24 17:27:49 +04:00
|
|
|
(table [
|
2022-05-05 11:14:17 +04:00
|
|
|
(bare_key)
|
2023-06-24 17:27:49 +04:00
|
|
|
(dotted_key)
|
2022-05-05 11:14:17 +04:00
|
|
|
(quoted_key)
|
2023-06-24 17:27:49 +04:00
|
|
|
] @type)
|
|
|
|
|
|
|
|
(table_array_element [
|
|
|
|
(bare_key)
|
|
|
|
(dotted_key)
|
|
|
|
(quoted_key)
|
|
|
|
] @type)
|
|
|
|
|
|
|
|
(pair [
|
|
|
|
(bare_key)
|
|
|
|
(dotted_key)
|
|
|
|
(quoted_key)
|
|
|
|
] @variable.other.member)
|
2021-04-09 12:42:49 +04:00
|
|
|
|
|
|
|
; Literals
|
|
|
|
;---------
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(boolean) @constant.builtin.boolean
|
2021-04-09 12:42:49 +04:00
|
|
|
(comment) @comment
|
|
|
|
(string) @string
|
2021-11-03 07:00:52 +04:00
|
|
|
(integer) @constant.numeric.integer
|
|
|
|
(float) @constant.numeric.float
|
2021-04-09 12:42:49 +04:00
|
|
|
(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
|