mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
Python locals/highlights: Parameters can be optionally typed
This commit is contained in:
parent
0d2385407e
commit
d729fdedb5
2 changed files with 21 additions and 14 deletions
|
|
@ -66,6 +66,10 @@
|
|||
; Naming parameters on call-site
|
||||
(default_parameter
|
||||
name: (identifier) @parameter)
|
||||
(typed_parameter
|
||||
(identifier) @parameter)
|
||||
(typed_default_parameter
|
||||
(identifier) @parameter)
|
||||
; Variadic parameters *args, **kwargs
|
||||
(parameters
|
||||
(list_splat ; *args
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue