aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/erlang')
-rw-r--r--runtime/queries/erlang/highlights.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index 0cb60ca9..94f1e9f5 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -38,8 +38,8 @@
(arguments
.
[
- (atom) @keyword.directive
- (variable) @keyword.directive
+ (atom) @constant
+ (variable) @constant
(call
function:
[(variable) (atom)] @keyword.directive)
@@ -100,6 +100,11 @@
; Macros
(macro
+ "?"+ @constant
+ name: (_) @constant
+ !arguments)
+
+(macro
"?"+ @keyword.directive
name: (_) @keyword.directive)