erlang: highlight nullary macros as constants
commitd523280e8533e8d57eda0b9fbc0f076b07002a2b
authorMichael Davis <mcarsondavis@gmail.com>
dateTue 14 Jun 2022, 09:39 (4 years ago)
parent26501af
runtime/queries/erlang/highlights.scm+7−2
@@ -38,8 +38,8 @@
3838 (arguments
3939 .
4040 [
41− (atom) @keyword.directive
42− (variable) @keyword.directive
41+ (atom) @constant
42+ (variable) @constant
4343 (call
4444 function:
4545 [(variable) (atom)] @keyword.directive)
@@ -99,6 +99,11 @@
9999(comment) @comment
100100
101101; Macros
102+(macro
103+ "?"+ @constant
104+ name: (_) @constant
105+ !arguments)
106+
102107(macro
103108 "?"+ @keyword.directive
104109 name: (_) @keyword.directive)