Updated elixir queries to fix crash

imgbot
Corey Powell 3 years ago committed by Blaž Hrastnik
parent 5e2ba28e0e
commit 35feb614b6

@ -17,7 +17,8 @@
(atom_content) (atom_content)
(atom_end)] @tag (atom_end)] @tag
(comment) @comment [(comment)
(unused_identifier)] @comment
(escape_sequence) @escape (escape_sequence) @escape
@ -50,8 +51,7 @@
left: (identifier) @variable.parameter left: (identifier) @variable.parameter
operator: _ @function operator: _ @function
right: (identifier) @variable.parameter)] right: (identifier) @variable.parameter)]
(#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$") (#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$"))
(#match? @variable.parameter "^[^_]"))
(call (function_identifier) @keyword (call (function_identifier) @keyword
[(call [(call
@ -73,8 +73,7 @@
(_ (_ (identifier) @variable.parameter)) (_ (_ (identifier) @variable.parameter))
(_ (_ (_ (identifier) @variable.parameter))) (_ (_ (_ (identifier) @variable.parameter)))
(_ (_ (_ (_ (identifier) @variable.parameter)))) (_ (_ (_ (_ (identifier) @variable.parameter))))
(_ (_ (_ (_ (_ (identifier) @variable.parameter)))))])) (_ (_ (_ (_ (_ (identifier) @variable.parameter)))))])))
(#match? @variable.parameter "^[^_]"))
(unary_op (unary_op
operator: "@" operator: "@"
@ -134,13 +133,6 @@
">>" ">>"
] @punctuation.bracket ] @punctuation.bracket
[(identifier) @function.special (special_identifier) @function.special
(#match? @function.special "^__.+__$")]
[(remote_identifier) @function.special
(#match? @function.special "^__.+__$")]
[(identifier) @comment
(#match? @comment "^_")]
(ERROR) @warning (ERROR) @warning

Loading…
Cancel
Save