Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Highlight a broader range of zig functions
Allan Calix742329ee8f25
diff --git a/crates/zed/src/languages/zig/highlights.scm b/crates/zed/src/languages/zig/highlights.scmindex 62bb5484018..53b08aef856 100644--- a/crates/zed/src/languages/zig/highlights.scm+++ b/crates/zed/src/languages/zig/highlights.scm@@ -26,14 +26,10 @@ parameter: (IDENTIFIER) @parameter(#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$"))-;; assume camelCase is a function(- [- variable_type_function: (IDENTIFIER)- field_access: (IDENTIFIER)- parameter: (IDENTIFIER)- ] @function- (#match? @function "^[a-z]+([A-Z][a-z0-9]+)$")+ (_+ variable_type_function: (IDENTIFIER) @function+ (FnCallArguments)));; assume all CAPS_1 is a constant