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
1
runtime/queries/elsa/folds.scm
Normal file
1
runtime/queries/elsa/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(reduction) @fold
|
||||
36
runtime/queries/elsa/highlights.scm
Normal file
36
runtime/queries/elsa/highlights.scm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
; Keywords
|
||||
[
|
||||
"eval"
|
||||
"let"
|
||||
] @keyword
|
||||
|
||||
; Function
|
||||
(function) @function
|
||||
|
||||
; Method
|
||||
(method) @function.method
|
||||
|
||||
; Parameter
|
||||
(parameter) @variable.parameter
|
||||
|
||||
; Variables
|
||||
(identifier) @variable
|
||||
|
||||
; Operators
|
||||
[
|
||||
"\\"
|
||||
"->"
|
||||
"="
|
||||
(step)
|
||||
] @operator
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
":" @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
6
runtime/queries/elsa/indents.scm
Normal file
6
runtime/queries/elsa/indents.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(reduction) @indent.begin
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @indent.auto
|
||||
2
runtime/queries/elsa/injections.scm
Normal file
2
runtime/queries/elsa/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
12
runtime/queries/elsa/locals.scm
Normal file
12
runtime/queries/elsa/locals.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
(source_file)
|
||||
(reduction)
|
||||
] @local.scope
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
(function) @local.definition.function
|
||||
|
||||
(method) @local.definition.method
|
||||
|
||||
(parameter) @local.definition.parameter
|
||||
Loading…
Add table
Add a link
Reference in a new issue