From d523280e8533e8d57eda0b9fbc0f076b07002a2b Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 14 Jun 2022 09:39:45 -0500 Subject: erlang: highlight nullary macros as constants --- runtime/queries/erlang/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'runtime/queries') 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) @@ -99,6 +99,11 @@ (comment) @comment ; Macros +(macro + "?"+ @constant + name: (_) @constant + !arguments) + (macro "?"+ @keyword.directive name: (_) @keyword.directive) -- cgit v1.2.3-70-g09d2