From a5fb463309e25841c4abec2ca7bcd826c04270bc Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 9 Jul 2020 13:30:22 +0200 Subject: Python locals: with_statement can define variables --- queries/python/locals.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'queries/python') diff --git a/queries/python/locals.scm b/queries/python/locals.scm index 1deca18c9..7ff07957c 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -29,6 +29,10 @@ (typed_default_parameter (identifier) @definition.var) +(with_statement + (with_item + alias: (identifier) @definition.var)) + ; *args parameter (parameters (list_splat -- cgit v1.2.3-70-g09d2