diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm index 5b64642771..e5f1b4d423 100644 --- a/crates/languages/src/python/highlights.scm +++ b/crates/languages/src/python/highlights.scm @@ -1,5 +1,14 @@ (attribute attribute: (identifier) @property) (type (identifier) @type) +(generic_type (identifier) @type) + +; Type alias +(type_alias_statement "type" @keyword) + +; TypeVar with constraints in type parameters +(type + (tuple (identifier) @type) +) ; Function calls