mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
306367a7f4
commit
8fb218dbfd
95 changed files with 1154 additions and 1154 deletions
|
|
@ -1,38 +1,38 @@
|
|||
(block) @scope
|
||||
(block) @local.scope
|
||||
|
||||
; Parameter definitions
|
||||
(parameter_declaration
|
||||
command: (identifier)
|
||||
macro: (macro) @definition.parameter)
|
||||
macro: (macro) @local.definition.parameter)
|
||||
|
||||
; Variable definitions
|
||||
(macro_definition
|
||||
command: (identifier)
|
||||
macro: (macro) @definition.var)
|
||||
macro: (macro) @local.definition.var)
|
||||
|
||||
(command_expression
|
||||
command: (identifier)
|
||||
arguments: (argument_list
|
||||
declarator: (trace32_hll_variable) @definition.var))
|
||||
declarator: (trace32_hll_variable) @local.definition.var))
|
||||
|
||||
; Function definitions
|
||||
(subroutine_block
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @definition.function)
|
||||
subroutine: (identifier) @local.definition.function)
|
||||
|
||||
(labeled_expression
|
||||
label: (identifier) @definition.function
|
||||
label: (identifier) @local.definition.function
|
||||
(block))
|
||||
|
||||
; References
|
||||
(
|
||||
(subroutine_call_expression
|
||||
command: (identifier)
|
||||
subroutine: (identifier) @reference)
|
||||
subroutine: (identifier) @local.reference)
|
||||
(#set! reference.kind "function")
|
||||
)
|
||||
|
||||
[
|
||||
(macro)
|
||||
(trace32_hll_variable)
|
||||
] @reference
|
||||
] @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue