diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-06-02 21:13:09 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2020-06-02 21:13:09 +0200 |
| commit | 92417aa4ea3a77d34a5b8e2f526cc8bd7c0d4ded (patch) | |
| tree | de709a5a508612a7206bcd535e996a3cba6f7abb /queries/python | |
| parent | d73988a90782decafa0115e0e935bf86256f43b7 (diff) | |
Update python locals: `list_splat` and `dictionary_splat` define variables as parameters
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/locals.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/python/locals.scm b/queries/python/locals.scm index bc33d306..73527166 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -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 |
