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 missing operators and keywords to the C syntax highlighting (#17541)

krizej40a00fb2249f
diff --git a/crates/languages/src/c/highlights.scm b/crates/languages/src/c/highlights.scm
index 0a8c12f06ff..634f8d81c4a 100644
--- a/crates/languages/src/c/highlights.scm
+++ b/crates/languages/src/c/highlights.scm
@@ -9,6 +9,7 @@
"enum"
"extern"
"for"
+ "goto"
"if"
"inline"
"return"
@@ -35,27 +36,48 @@
] @keyword
[
+ "="
+ "+="
+ "-="
+ "*="
+ "/="
+ "%="
+ "&="
+ "|="
+ "^="
+ "<<="
+ ">>="
+ "++"
"--"
+ "+"
"-"
- "-="
- "->"
- "="
- "!="
"*"
+ "/"
+ "%"
+ "~"
"&"
+ "|"
+ "^"
+ "<<"
+ ">>"
+ "!"
"&&"
- "+"
- "++"
- "+="
- "<"
+ "||"
"=="
+ "!="
+ "<"
">"
- "||"
+ "<="
+ ">="
+ "->"
+ "?"
+ ":"
] @operator
[
"."
";"
+ ","
] @punctuation.delimiter
[