Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix the order of some patterns in elixir highlight query
Max Brunsfeld7aeaa846579a
diff --git a/crates/zed/src/languages/elixir/highlights.scm b/crates/zed/src/languages/elixir/highlights.scmindex 5c256f341cd..deea51c4363 100644--- a/crates/zed/src/languages/elixir/highlights.scm+++ b/crates/zed/src/languages/elixir/highlights.scm@@ -1,20 +1,5 @@["when" "and" "or" "not" "in" "not in" "fn" "do" "end" "catch" "rescue" "after" "else"] @keyword-(unary_operator- operator: "@" @comment.doc- operand: (call- target: (identifier) @comment.doc.__attribute__- (arguments- [- (string) @comment.doc- (charlist) @comment.doc- (sigil- quoted_start: _ @comment.doc- quoted_end: _ @comment.doc) @comment.doc- (boolean) @comment.doc- ]))- (#match? @comment.doc.__attribute__ "^(moduledoc|typedoc|doc)$"))-(unary_operatoroperator: "&"operand: (integer) @operator)@@ -84,6 +69,11 @@quoted_start: _ @string.specialquoted_end: _ @string.special) @string.special+(+ (identifier) @comment.unused+ (#match? @comment.unused "^_")+)+(calltarget: [(identifier) @function@@ -99,17 +89,12 @@(binary_operatorleft: (identifier) @functionoperator: "when")+ (binary_operator+ operator: "|>"+ right: (identifier))])(#match? @keyword "^(def|defdelegate|defguard|defguardp|defmacro|defmacrop|defn|defnp|defp)$"))-(call- target: (identifier) @keyword- (arguments- (binary_operator- operator: "|>"- right: (identifier)))- (#match? @keyword "^(def|defdelegate|defguard|defguardp|defmacro|defmacrop|defn|defnp|defp)$"))-(binary_operatoroperator: "|>"right: (identifier) @function)@@ -127,10 +112,18 @@(#match? @constant.builtin "^(__MODULE__|__DIR__|__ENV__|__CALLER__|__STACKTRACE__)$"))-(- (identifier) @comment.unused- (#match? @comment.unused "^_")-)+(unary_operator+ operator: "@" @comment.doc+ operand: (call+ target: (identifier) @__attribute__ @comment.doc+ (arguments+ [+ (string)+ (charlist)+ (sigil)+ (boolean)+ ] @comment.doc))+ (#match? @__attribute__ "^(moduledoc|typedoc|doc)$"))(comment) @comment