mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -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/corn/folds.scm
Normal file
5
runtime/queries/corn/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(object)
|
||||
(array)
|
||||
(assign_block)
|
||||
] @fold
|
||||
22
runtime/queries/corn/highlights.scm
Normal file
22
runtime/queries/corn/highlights.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
"let" @keyword
|
||||
"in" @keyword
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"." @punctuation.delimiter
|
||||
|
||||
(input) @constant
|
||||
(comment) @comment
|
||||
|
||||
(string) @string
|
||||
(integer) @number
|
||||
(float) @float
|
||||
(boolean) @boolean
|
||||
(null) @keyword
|
||||
|
||||
(ERROR) @error
|
||||
14
runtime/queries/corn/indents.scm
Normal file
14
runtime/queries/corn/indents.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
(assign_block "{")
|
||||
(object)
|
||||
(array)
|
||||
] @indent.begin
|
||||
|
||||
(assign_block "}" @indent.branch)
|
||||
(assign_block "}" @indent.end)
|
||||
|
||||
(object "}" @indent.branch)
|
||||
(object "}" @indent.end)
|
||||
|
||||
(array "]" @indent.branch)
|
||||
(array "]" @indent.end)
|
||||
16
runtime/queries/corn/locals.scm
Normal file
16
runtime/queries/corn/locals.scm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
; scopes
|
||||
|
||||
[
|
||||
(object)
|
||||
(array)
|
||||
] @scope
|
||||
|
||||
; definitions
|
||||
|
||||
(assign_block
|
||||
(assignment
|
||||
(input)
|
||||
@definition.constant))
|
||||
|
||||
(value (input) @reference)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue