mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
36
runtime/queries/t32/locals.scm
Normal file
36
runtime/queries/t32/locals.scm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
(block) @local.scope
|
||||
|
||||
; Parameter definitions
|
||||
(parameter_declaration
|
||||
command: (identifier)
|
||||
macro: (macro) @local.definition.parameter)
|
||||
|
||||
; Variable definitions
|
||||
(macro_definition
|
||||
command: (identifier)
|
||||
macro: (macro) @local.definition.var)
|
||||
|
||||
(command_expression
|
||||
command: (identifier)
|
||||
arguments: (argument_list
|
||||
declarator: (trace32_hll_variable) @local.definition.var))
|
||||
|
||||
; Function definitions
|
||||
(subroutine_block
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @local.definition.function)
|
||||
|
||||
(labeled_expression
|
||||
label: (identifier) @local.definition.function
|
||||
(block))
|
||||
|
||||
; References
|
||||
((subroutine_call_expression
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @local.reference)
|
||||
(#set! reference.kind "function"))
|
||||
|
||||
[
|
||||
(macro)
|
||||
(trace32_hll_variable)
|
||||
] @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue