aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm2
-rw-r--r--queries/python/locals.scm7
2 files changed, 3 insertions, 6 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 0813c960b..ccbb2e79d 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -230,7 +230,7 @@
["from" "import"] @include
(aliased_import "as" @include)
-["if" "elif" "else"] @conditional
+["if" "elif" "else" "match" "case"] @conditional
["for" "while" "break" "continue"] @repeat
diff --git a/queries/python/locals.scm b/queries/python/locals.scm
index 5cfd35435..7699a512e 100644
--- a/queries/python/locals.scm
+++ b/queries/python/locals.scm
@@ -34,11 +34,6 @@
(typed_default_parameter
(identifier) @definition.parameter)
-(with_statement
- (with_clause
- (with_item
- alias: (identifier) @definition.var)))
-
; *args parameter
(parameters
(list_splat_pattern
@@ -113,6 +108,8 @@
(named_expression
(identifier) @definition.var)
+(as_pattern
+ alias: (identifier) @definition.var)
;;; REFERENCES
(identifier) @reference