diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm index e3e38aafedf52ac9212d6392377d225c8246c4b7..a6c20cd6bc666867558778066960e086d342964a 100644 --- a/crates/languages/src/python/highlights.scm +++ b/crates/languages/src/python/highlights.scm @@ -8,6 +8,7 @@ ((identifier) @constant (#match? @constant "^_*[A-Z][A-Z0-9_]*$")) +(identifier) @variable (attribute attribute: (identifier) @property) (type (identifier) @type) (generic_type (identifier) @type) @@ -117,6 +118,12 @@ (#match? @variable.special "^self|cls$") ] +[ + "." + "," + ":" +] @punctuation.delimiter + [ "(" ")" @@ -190,6 +197,7 @@ "&" "%" "%=" + "@" "^" "+" "->"