mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
locals(lua): simplify args
This commit is contained in:
parent
f9844d359e
commit
3faaeb479b
1 changed files with 2 additions and 6 deletions
|
|
@ -8,12 +8,7 @@
|
|||
(field_expression object:(*) @definition.associated (property_identifier) @definition.var)))
|
||||
|
||||
;; Parameters
|
||||
((local_function
|
||||
(parameters (identifier) @definition.var)))
|
||||
((function
|
||||
(parameters (identifier) @definition.var)))
|
||||
((function_definition
|
||||
(parameters (identifier) @definition.var)))
|
||||
(parameters (identifier) @definition.var)
|
||||
|
||||
;; Loops
|
||||
((loop_expression
|
||||
|
|
@ -32,6 +27,7 @@
|
|||
|
||||
((local_function
|
||||
(identifier) @definition.function) @scope)
|
||||
(function_definition) @scope
|
||||
|
||||
((if_statement) @scope)
|
||||
((for_in_statement) @scope)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue