diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm index e3e38aafed..a6c20cd6bc 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 @@ "&" "%" "%=" + "@" "^" "+" "->"