mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
5
runtime/queries/toml/folds.scm
Normal file
5
runtime/queries/toml/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(table)
|
||||
(array)
|
||||
(table_array_element)
|
||||
] @fold
|
||||
36
runtime/queries/toml/highlights.scm
Normal file
36
runtime/queries/toml/highlights.scm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
; Properties
|
||||
;-----------
|
||||
|
||||
(bare_key) @type
|
||||
(quoted_key) @string
|
||||
(pair (bare_key)) @property
|
||||
|
||||
; Literals
|
||||
;---------
|
||||
|
||||
(boolean) @boolean
|
||||
(comment) @comment @spell
|
||||
(string) @string
|
||||
(integer) @number
|
||||
(float) @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
|
||||
|
||||
(ERROR) @error
|
||||
11
runtime/queries/toml/indents.scm
Normal file
11
runtime/queries/toml/indents.scm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[
|
||||
(array)
|
||||
(inline_table)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @indent.branch
|
||||
2
runtime/queries/toml/injections.scm
Normal file
2
runtime/queries/toml/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
4
runtime/queries/toml/locals.scm
Normal file
4
runtime/queries/toml/locals.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(table)
|
||||
(table_array_element)
|
||||
] @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue