From bb7d1e53beeb1d3a954dcb842de1db17783b79cd Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sun, 31 May 2026 12:01:54 -0400 Subject: [PATCH] queries: Avoid `left` field in Python type alias statement This breaks snakemake, which inherits Python. We can work around it with an anchor. --- runtime/queries/python/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 3f0df1c0..947778a9 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -314,7 +314,7 @@ ; PEP 695: `type Alias = ...` (type_alias_statement - left: (type (identifier) @type.definition)) + . (type (identifier) @type.definition)) ; `X = TypeVar("X")` / `X = NewType("X", int)` ((assignment -- 2.51.2