AutoYADM commit: 2025-02-24 12:20:13
This commit is contained in:
parent
80d504297d
commit
07816afdbe
3 changed files with 57 additions and 0 deletions
48
.config/helix/runtime/queries/toml/highlights.scm
Normal file
48
.config/helix/runtime/queries/toml/highlights.scm
Normal file
|
@ -0,0 +1,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
|
2
.config/helix/runtime/queries/toml/injections.scm
Normal file
2
.config/helix/runtime/queries/toml/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
7
.config/helix/runtime/queries/toml/textobjects.scm
Normal file
7
.config/helix/runtime/queries/toml/textobjects.scm
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
(pair
|
||||||
|
(_) @entry.inside) @entry.around
|
||||||
|
|
||||||
|
(array
|
||||||
|
(_) @entry.around)
|
||||||
|
|
||||||
|
(comment)+ @comment.around
|
Loading…
Add table
Add a link
Reference in a new issue