aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/erlang/highlights.scm20
1 files changed, 10 insertions, 10 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index 3f4ef4cb..741f5e54 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -65,6 +65,16 @@
(function_capture module: (atom) @namespace)
(function_capture function: (atom) @function)
+; Macros
+(macro
+ "?"+ @constant
+ name: (_) @constant
+ !arguments)
+
+(macro
+ "?"+ @keyword.directive
+ name: (_) @keyword.directive)
+
; Ignored variables
((variable) @comment.discard
(#match? @comment.discard "^_"))
@@ -125,16 +135,6 @@
(unary_operator operator: _ @operator)
["/" ":" "->"] @operator
-; Macros
-(macro
- "?"+ @constant
- name: (_) @constant
- !arguments)
-
-(macro
- "?"+ @keyword.directive
- name: (_) @keyword.directive)
-
; Comments
(tripledot) @comment.discard