diff options
author | Michael Davis | 2022-06-14 14:39:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-07-01 09:04:23 +0000 |
commit | d523280e8533e8d57eda0b9fbc0f076b07002a2b (patch) | |
tree | 54dd13881db5dca545d883415ce2f0b9c32e1418 /runtime/queries | |
parent | 26501afe13bcb513a5dec764daccdcfd166a7114 (diff) |
erlang: highlight nullary macros as constants
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/erlang/highlights.scm | 9 |
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) |