mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -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
|
||||
(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_definition
|
||||
name: (identifier) @definition.function) @scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue