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: Fix highlighting for forward references (#20766)

Jaagup Averinb12a508ed9ae
diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm
index 98ed2039695..3b318fe962f 100644
--- a/crates/languages/src/python/highlights.scm
+++ b/crates/languages/src/python/highlights.scm
@@ -18,6 +18,12 @@
(tuple (identifier) @type)
)
+; Forward references
+(type
+ (string) @type
+)
+
+
; Function calls
(decorator