aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Davis2022-06-14 14:39:45 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commitd523280e8533e8d57eda0b9fbc0f076b07002a2b (patch)
tree54dd13881db5dca545d883415ce2f0b9c32e1418 /runtime
parent26501afe13bcb513a5dec764daccdcfd166a7114 (diff)
erlang: highlight nullary macros as constants
Diffstat (limited to 'runtime')
-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)