diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm index 4bdeceaab..13b57e954 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 "^_"))