mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 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
|
||||
37
runtime/queries/corn/highlights.scm
Normal file
37
runtime/queries/corn/highlights.scm
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[
|
||||
"let"
|
||||
"in"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"." @punctuation.delimiter
|
||||
|
||||
[
|
||||
".."
|
||||
"="
|
||||
] @operator
|
||||
|
||||
(input) @constant
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(string) @string
|
||||
|
||||
(integer) @number
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(float
|
||||
"." @number.float)
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(path_seg) @property
|
||||
24
runtime/queries/corn/indents.scm
Normal file
24
runtime/queries/corn/indents.scm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[
|
||||
(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)
|
||||
2
runtime/queries/corn/injections.scm
Normal file
2
runtime/queries/corn/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
13
runtime/queries/corn/locals.scm
Normal file
13
runtime/queries/corn/locals.scm
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
; scopes
|
||||
[
|
||||
(object)
|
||||
(array)
|
||||
] @local.scope
|
||||
|
||||
; definitions
|
||||
(assign_block
|
||||
(assignment
|
||||
(input) @local.definition.constant))
|
||||
|
||||
(value
|
||||
(input) @local.reference)
|
||||
Loading…
Add table
Add a link
Reference in a new issue