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.

Add brackets and missing operators to Python grammar (#11180)

adorabilis2306e3cd504c
diff --git a/crates/languages/src/python/highlights.scm b/crates/languages/src/python/highlights.scm
index 0d85c8b6a93..386e2e274f4 100644
--- a/crates/languages/src/python/highlights.scm
+++ b/crates/languages/src/python/highlights.scm
@@ -48,6 +48,15 @@
(string) @string
(escape_sequence) @escape
+[
+ "("
+ ")"
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+
(interpolation
"{" @punctuation.special
"}" @punctuation.special) @embedded
@@ -96,6 +105,8 @@
"is"
"not"
"or"
+ "is not"
+ "not in"
] @operator
[