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.

Don't highlight Python import names as type (#17984)

Boris Verkhovskiybc751d6c1994
diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm
index df6b60466cd..3255677bedc 100644
--- a/crates/languages/src/python/highlights.scm
+++ b/crates/languages/src/python/highlights.scm
@@ -2,24 +2,6 @@
(attribute attribute: (identifier) @property)
(type (identifier) @type)
-; Module imports
-
-(import_statement
- (dotted_name (identifier) @type))
-
-(import_statement
- (aliased_import
- name: (dotted_name (identifier) @type)
- alias: (identifier) @type))
-
-(import_from_statement
- (dotted_name (identifier) @type))
-
-(import_from_statement
- (aliased_import
- name: (dotted_name (identifier) @type)
- alias: (identifier) @type))
-
; Function calls
(decorator) @function