Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--runtime/queries/erlang/highlights.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index 4bdeceaa..13b57e95 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -1,5 +1,5 @@
; Comments
-(tripledot) @comment.discard
+(tripledot) @comment.unused
[(comment) (line_comment) (shebang)] @comment
@@ -114,10 +114,6 @@
] @comment.block.documentation)
(#any-of? @keyword "doc" "moduledoc"))
-; Ignored variables
-((variable) @comment.discard
- (#match? @comment.discard "^_"))
-
; Macros
(macro
"?"+ @keyword.directive
@@ -163,3 +159,7 @@
(record field: (atom) @variable.other.member)
(record name: (atom) @type)
+
+; Ignored variables
+((variable) @comment.unused
+ (#match? @comment.unused "^_"))