mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00: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
51
runtime/queries/tablegen/locals.scm
Normal file
51
runtime/queries/tablegen/locals.scm
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
; Scopes
|
||||
[
|
||||
(class)
|
||||
(multiclass)
|
||||
(def)
|
||||
(defm)
|
||||
(defset)
|
||||
(defvar)
|
||||
(foreach)
|
||||
(if)
|
||||
(let)
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
[
|
||||
(var)
|
||||
(identifier)
|
||||
] @local.reference
|
||||
|
||||
; Definitions
|
||||
(instruction
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(let_instruction
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(include_directive
|
||||
(string) @local.definition.import)
|
||||
|
||||
(template_arg
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(class
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(multiclass
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(def
|
||||
name: (value
|
||||
(_) @local.definition.type))
|
||||
|
||||
(defm
|
||||
name: (value
|
||||
(_) @local.definition.type))
|
||||
|
||||
(defset
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(def_var
|
||||
name: (identifier) @local.definition.var)
|
||||
Loading…
Add table
Add a link
Reference in a new issue