Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

python: Add highlighting to variables (#11851)

Krzysztof Witkowskia414b167547e
diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm
index 386e2e274f4..c31b64b10cf 100644
--- a/crates/languages/src/python/highlights.scm
+++ b/crates/languages/src/python/highlights.scm
@@ -44,6 +44,10 @@
(float)
] @number
+; Variables
+(assignment
+ left: (identifier) @variable)
+
(comment) @comment
(string) @string
(escape_sequence) @escape