Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zig: Fix highlighting of keywords like `orelse`, `or`, `and` (#18323)
Thorsten Balleb71d2f1a8a6
diff --git a/extensions/zig/languages/zig/highlights.scm b/extensions/zig/languages/zig/highlights.scmindex 152a66b670b..aea2d34addb 100644--- a/extensions/zig/languages/zig/highlights.scm+++ b/extensions/zig/languages/zig/highlights.scm@@ -103,6 +103,7 @@ field_constant: (IDENTIFIER) @constant(BlockLabel (IDENTIFIER) @tag)[+ "fn""asm""defer""errdefer"@@ -112,84 +113,53 @@ field_constant: (IDENTIFIER) @constant"enum""opaque""error"-] @keyword--[+ "try"+ "catch"+ "for"+ "while"+ "break"+ "continue"+ "const"+ "var"+ "volatile"+ "allowzero"+ "noalias"+ "addrspace"+ "align"+ "callconv"+ "linksection"+ "comptime"+ "export"+ "extern"+ "inline"+ "noinline"+ "packed"+ "pub"+ "threadlocal""async""await""suspend""nosuspend""resume"-] @keyword.coroutine--[- "fn"-] @keyword--["and""or""orelse"-] @operator--["return"-] @keyword.return--["if""else""switch"-] @keyword.control--[- "for"- "while"- "break"- "continue"] @keyword["usingnamespace"] @constant-[- "try"- "catch"-] @keyword-["anytype""anyframe"(BuildinTypeExpr)] @type-[- "const"- "var"- "volatile"- "allowzero"- "noalias"-] @keyword--[- "addrspace"- "align"- "callconv"- "linksection"-] @keyword.storage--[- "comptime"- "export"- "extern"- "inline"- "noinline"- "packed"- "pub"- "threadlocal"-] @keyword-["null""unreachable"