mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -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
1
runtime/queries/elsa/folds.scm
Normal file
1
runtime/queries/elsa/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(reduction) @fold
|
||||
41
runtime/queries/elsa/highlights.scm
Normal file
41
runtime/queries/elsa/highlights.scm
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
; Keywords
|
||||
|
||||
[
|
||||
"eval"
|
||||
"let"
|
||||
] @keyword
|
||||
|
||||
; Function
|
||||
|
||||
(function) @function
|
||||
|
||||
; Method
|
||||
|
||||
(method) @method
|
||||
|
||||
; Parameter
|
||||
|
||||
(parameter) @parameter
|
||||
|
||||
; Variables
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
"\\"
|
||||
"->"
|
||||
"="
|
||||
(step)
|
||||
] @operator
|
||||
|
||||
; Punctuation
|
||||
|
||||
["(" ")"] @punctuation.bracket
|
||||
|
||||
":" @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
|
||||
(comment) @comment
|
||||
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)
|
||||
] @scope
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
(function) @definition.function
|
||||
|
||||
(method) @definition.method
|
||||
|
||||
(parameter) @definition.parameter
|
||||
Loading…
Add table
Add a link
Reference in a new issue