mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -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/json/folds.scm
Normal file
5
runtime/queries/json/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(pair)
|
||||
(object)
|
||||
(array)
|
||||
] @fold
|
||||
30
runtime/queries/json/highlights.scm
Normal file
30
runtime/queries/json/highlights.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
(true)
|
||||
(false)
|
||||
] @boolean
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
(number) @number
|
||||
|
||||
(pair key: (string) @label)
|
||||
(pair value: (string) @string)
|
||||
|
||||
(array (string) @string)
|
||||
|
||||
(ERROR) @error
|
||||
|
||||
["," ":"] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"[" "]"
|
||||
"{" "}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(("\"" @conceal)
|
||||
(#set! conceal ""))
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
((escape_sequence) @conceal
|
||||
(#eq? @conceal "\\\"")
|
||||
(#set! conceal "\""))
|
||||
9
runtime/queries/json/indents.scm
Normal file
9
runtime/queries/json/indents.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(object)
|
||||
(array)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
4
runtime/queries/json/locals.scm
Normal file
4
runtime/queries/json/locals.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(object)
|
||||
(array)
|
||||
] @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue