mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
Update python locals: list_splat and dictionary_splat define variables as parameters
This commit is contained in:
parent
d73988a907
commit
92417aa4ea
1 changed files with 14 additions and 0 deletions
|
|
@ -14,6 +14,20 @@
|
||||||
parameters: (parameters
|
parameters: (parameters
|
||||||
(identifier) @definition.var))
|
(identifier) @definition.var))
|
||||||
|
|
||||||
|
; *args parameter
|
||||||
|
(function_definition
|
||||||
|
name: (identifier)
|
||||||
|
parameters: (parameters
|
||||||
|
(list_splat
|
||||||
|
(identifier) @definition.var)))
|
||||||
|
|
||||||
|
; **kwargs parameter
|
||||||
|
(function_definition
|
||||||
|
name: (identifier)
|
||||||
|
parameters: (parameters
|
||||||
|
(dictionary_splat
|
||||||
|
(identifier) @definition.var)))
|
||||||
|
|
||||||
; Function defines function and scope
|
; Function defines function and scope
|
||||||
(function_definition
|
(function_definition
|
||||||
name: (identifier) @definition.function) @scope
|
name: (identifier) @definition.function) @scope
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue