mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -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
8
runtime/queries/kdl/folds.scm
Normal file
8
runtime/queries/kdl/folds.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
; Folds
|
||||
|
||||
[
|
||||
(node)
|
||||
(node_children)
|
||||
(string)
|
||||
(multi_line_comment)
|
||||
] @fold
|
||||
58
runtime/queries/kdl/highlights.scm
Normal file
58
runtime/queries/kdl/highlights.scm
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
; Types
|
||||
|
||||
(node (identifier) @type)
|
||||
|
||||
(type) @type
|
||||
|
||||
(annotation_type) @type.builtin
|
||||
|
||||
; Properties
|
||||
|
||||
(prop (identifier) @property)
|
||||
|
||||
; Variables
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
; Operators
|
||||
[
|
||||
"="
|
||||
"+"
|
||||
"-"
|
||||
] @operator
|
||||
|
||||
; Literals
|
||||
|
||||
(string) @string
|
||||
|
||||
(escape) @string.escape
|
||||
|
||||
(number) @number
|
||||
|
||||
(number (decimal) @float)
|
||||
(number (exponent) @float)
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
"null" @constant.builtin
|
||||
|
||||
; Punctuation
|
||||
|
||||
["{" "}"] @punctuation.bracket
|
||||
|
||||
["(" ")"] @punctuation.bracket
|
||||
|
||||
[
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
|
||||
[
|
||||
(single_line_comment)
|
||||
(multi_line_comment)
|
||||
] @comment @spell
|
||||
|
||||
(node (node_comment) (#set! "priority" 105)) @comment
|
||||
(node (node_field (node_field_comment) (#set! "priority" 105)) @comment)
|
||||
(node_children (node_children_comment) (#set! "priority" 105)) @comment
|
||||
7
runtime/queries/kdl/indents.scm
Normal file
7
runtime/queries/kdl/indents.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(node (node_children) @indent.begin)
|
||||
|
||||
"}" @indent.end
|
||||
|
||||
[ "{" "}" ] @indent.branch
|
||||
|
||||
[ "(" ")" ] @indent.branch
|
||||
5
runtime/queries/kdl/injections.scm
Normal file
5
runtime/queries/kdl/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
([
|
||||
(single_line_comment)
|
||||
(multi_line_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
10
runtime/queries/kdl/locals.scm
Normal file
10
runtime/queries/kdl/locals.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(document) @scope
|
||||
(node (node_children) @scope)
|
||||
(node_children (node) @scope)
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
(node_field) @definition.field
|
||||
|
||||
(node (identifier) @definition.type)
|
||||
(type) @definition.type
|
||||
Loading…
Add table
Add a link
Reference in a new issue