mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[
|
||||
(object)
|
||||
(array)
|
||||
(assign_block)
|
||||
(object)
|
||||
(array)
|
||||
(assign_block)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
"let" @keyword
|
||||
|
||||
"in" @keyword
|
||||
|
||||
[
|
||||
|
|
@ -11,10 +12,15 @@
|
|||
"." @punctuation.delimiter
|
||||
|
||||
(input) @constant
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(string) @string
|
||||
|
||||
(integer) @number
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(null) @keyword
|
||||
|
|
|
|||
|
|
@ -1,14 +1,24 @@
|
|||
[
|
||||
(assign_block "{")
|
||||
(object)
|
||||
(array)
|
||||
(assign_block
|
||||
"{")
|
||||
(object)
|
||||
(array)
|
||||
] @indent.begin
|
||||
|
||||
(assign_block "}" @indent.branch)
|
||||
(assign_block "}" @indent.end)
|
||||
(assign_block
|
||||
"}" @indent.branch)
|
||||
|
||||
(object "}" @indent.branch)
|
||||
(object "}" @indent.end)
|
||||
(assign_block
|
||||
"}" @indent.end)
|
||||
|
||||
(array "]" @indent.branch)
|
||||
(array "]" @indent.end)
|
||||
(object
|
||||
"}" @indent.branch)
|
||||
|
||||
(object
|
||||
"}" @indent.end)
|
||||
|
||||
(array
|
||||
"]" @indent.branch)
|
||||
|
||||
(array
|
||||
"]" @indent.end)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,13 @@
|
|||
; scopes
|
||||
|
||||
[
|
||||
(object)
|
||||
(array)
|
||||
] @local.scope
|
||||
|
||||
; definitions
|
||||
|
||||
(assign_block
|
||||
(assign_block
|
||||
(assignment
|
||||
(input)
|
||||
@local.definition.constant))
|
||||
|
||||
(value (input) @local.reference)
|
||||
(input) @local.definition.constant))
|
||||
|
||||
(value
|
||||
(input) @local.reference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue