mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat: improve KDL queries
This commit is contained in:
parent
24d5be6e71
commit
c3a7dd4768
8 changed files with 30 additions and 5 deletions
10
queries/kdl/locals.scm
Normal file
10
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