From c4e3564ea31183ddcd00d6192efb2879977b420e Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 3 Dec 2021 19:10:11 +0100 Subject: highlights(python): add support for pattern matching Fixes #2080 Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140 --- queries/python/locals.scm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'queries/python/locals.scm') 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 -- cgit v1.2.3-70-g09d2