mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
feat(t32): initial support
This commit is contained in:
parent
51df4212e7
commit
2d48cbc831
10 changed files with 371 additions and 0 deletions
35
queries/t32/locals.scm
Normal file
35
queries/t32/locals.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
(block) @scope
|
||||
|
||||
; Parameter definitions
|
||||
(parameter_declaration
|
||||
command: (identifier)
|
||||
macro: (macro) @definition.parameter)
|
||||
|
||||
; Variable definitions
|
||||
(macro_definition
|
||||
command: (identifier)
|
||||
macro: (macro) @definition.var)
|
||||
|
||||
(command_expression
|
||||
command: (identifier)
|
||||
arguments: (argument_list
|
||||
variable: (identifier) @definition.var))
|
||||
|
||||
; Function definitions
|
||||
(subroutine_block
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @definition.function)
|
||||
|
||||
(labeled_expression
|
||||
label: (identifier) @definition.function
|
||||
(block))
|
||||
|
||||
; References
|
||||
(
|
||||
(subroutine_call_expression
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @reference)
|
||||
(set! reference.kind "function")
|
||||
)
|
||||
|
||||
(macro) @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue