mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
refactor(toml): highlight queries
This commit is contained in:
parent
ca7993e606
commit
96290ae7ea
1 changed files with 39 additions and 35 deletions
|
|
@ -1,54 +1,58 @@
|
||||||
; Properties
|
(table
|
||||||
;-----------
|
[
|
||||||
(bare_key) @type
|
(bare_key) @markup.heading
|
||||||
|
(dotted_key
|
||||||
|
(bare_key) @markup.heading)
|
||||||
|
])
|
||||||
|
|
||||||
(quoted_key) @string
|
(table_array_element
|
||||||
|
[
|
||||||
|
(bare_key) @markup.heading
|
||||||
|
(dotted_key
|
||||||
|
(bare_key) @markup.heading)
|
||||||
|
])
|
||||||
|
|
||||||
(pair
|
(pair
|
||||||
(bare_key)) @property
|
[
|
||||||
|
(bare_key) @property
|
||||||
|
(dotted_key
|
||||||
|
(bare_key) @property)
|
||||||
|
])
|
||||||
|
|
||||||
(pair
|
[
|
||||||
(dotted_key
|
(string)
|
||||||
(bare_key) @property))
|
(quoted_key)
|
||||||
|
] @string
|
||||||
|
|
||||||
; Literals
|
|
||||||
;---------
|
|
||||||
(boolean) @boolean
|
(boolean) @boolean
|
||||||
|
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
(string) @string
|
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
(integer) @number
|
(integer) @number
|
||||||
|
|
||||||
(float) @number.float
|
(float) @number.float
|
||||||
|
|
||||||
(offset_date_time) @string.special
|
[
|
||||||
|
(local_date)
|
||||||
(local_date_time) @string.special
|
(local_date_time)
|
||||||
|
(local_time)
|
||||||
(local_date) @string.special
|
(offset_date_time)
|
||||||
|
] @string.special
|
||||||
(local_time) @string.special
|
|
||||||
|
|
||||||
; Punctuation
|
|
||||||
;------------
|
|
||||||
"." @punctuation.delimiter
|
|
||||||
|
|
||||||
"," @punctuation.delimiter
|
|
||||||
|
|
||||||
"=" @operator
|
"=" @operator
|
||||||
|
|
||||||
"[" @punctuation.bracket
|
[
|
||||||
|
"."
|
||||||
|
","
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
"]" @punctuation.bracket
|
[
|
||||||
|
"["
|
||||||
"[[" @punctuation.bracket
|
"]"
|
||||||
|
"[["
|
||||||
"]]" @punctuation.bracket
|
"]]"
|
||||||
|
"{"
|
||||||
"{" @punctuation.bracket
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
"}" @punctuation.bracket
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue