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