on master help sign in
Updated elixir queries to fix crash
35feb61Corey Powell
runtime/queries/elixir/highlights.scm+5−13
@@ -17,7 +17,8 @@
17 (atom_content)
17 (atom_content)
18 (atom_end)] @tag
18 (atom_end)] @tag
19
19
20−(comment) @comment
20+[(comment)
21+ (unused_identifier)] @comment
21
22
22(escape_sequence) @escape
23(escape_sequence) @escape
23
24
@@ -50,8 +51,7 @@
50 left: (identifier) @variable.parameter
51 left: (identifier) @variable.parameter
51 operator: _ @function
52 operator: _ @function
52 right: (identifier) @variable.parameter)]
53 right: (identifier) @variable.parameter)]
53− (#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$")
54+ (#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$"))
54− (#match? @variable.parameter "^[^_]"))
55
55
56(call (function_identifier) @keyword
56(call (function_identifier) @keyword
57 [(call
57 [(call
@@ -73,8 +73,7 @@
73 (_ (_ (identifier) @variable.parameter))
73 (_ (_ (identifier) @variable.parameter))
74 (_ (_ (_ (identifier) @variable.parameter)))
74 (_ (_ (_ (identifier) @variable.parameter)))
75 (_ (_ (_ (_ (identifier) @variable.parameter))))
75 (_ (_ (_ (_ (identifier) @variable.parameter))))
76− (_ (_ (_ (_ (_ (identifier) @variable.parameter)))))]))
76+ (_ (_ (_ (_ (_ (identifier) @variable.parameter)))))])))
77− (#match? @variable.parameter "^[^_]"))
78
77
79(unary_op
78(unary_op
80 operator: "@"
79 operator: "@"
@@ -134,13 +133,6 @@
134 ">>"
133 ">>"
135] @punctuation.bracket
134] @punctuation.bracket
136
135
137−[(identifier) @function.special
138− (#match? @function.special "^__.+__$")]
139−
140−[(remote_identifier) @function.special
136+(special_identifier) @function.special
141− (#match? @function.special "^__.+__$")]
142−
143−[(identifier) @comment
144− (#match? @comment "^_")]
145
137
146(ERROR) @warning
138(ERROR) @warning