aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorCorey Powell2021-06-08 14:59:53 +0000
committerBlaž Hrastnik2021-06-08 15:07:44 +0000
commit35feb614b6dab67f7b9660d56888f3724167951a (patch)
treee6b37a88ebecef2052f5b09be9903730e702826c /runtime
parent5e2ba28e0e3e872609398f1f3cee0c5b82207de0 (diff)
Updated elixir queries to fix crash
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/elixir/highlights.scm18
1 files changed, 5 insertions, 13 deletions
diff --git a/runtime/queries/elixir/highlights.scm b/runtime/queries/elixir/highlights.scm
index b9ec0210..6bf93a21 100644
--- a/runtime/queries/elixir/highlights.scm
+++ b/runtime/queries/elixir/highlights.scm
@@ -17,7 +17,8 @@
(atom_content)
(atom_end)] @tag
-(comment) @comment
+[(comment)
+ (unused_identifier)] @comment
(escape_sequence) @escape
@@ -50,8 +51,7 @@
left: (identifier) @variable.parameter
operator: _ @function
right: (identifier) @variable.parameter)]
- (#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$")
- (#match? @variable.parameter "^[^_]"))
+ (#match? @keyword "^(defp|def|defmacrop|defmacro|defguardp|defguard|defdelegate)$"))
(call (function_identifier) @keyword
[(call
@@ -73,8 +73,7 @@
(_ (_ (identifier) @variable.parameter))
(_ (_ (_ (identifier) @variable.parameter)))
(_ (_ (_ (_ (identifier) @variable.parameter))))
- (_ (_ (_ (_ (_ (identifier) @variable.parameter)))))]))
- (#match? @variable.parameter "^[^_]"))
+ (_ (_ (_ (_ (_ (identifier) @variable.parameter)))))])))
(unary_op
operator: "@"
@@ -134,13 +133,6 @@
">>"
] @punctuation.bracket
-[(identifier) @function.special
- (#match? @function.special "^__.+__$")]
-
-[(remote_identifier) @function.special
- (#match? @function.special "^__.+__$")]
-
-[(identifier) @comment
- (#match? @comment "^_")]
+(special_identifier) @function.special
(ERROR) @warning