erlang: highlight nullary macros as constants

imgbot
Michael Davis 3 years ago committed by Blaž Hrastnik
parent 26501afe13
commit d523280e85

@ -38,8 +38,8 @@
(arguments (arguments
. .
[ [
(atom) @keyword.directive (atom) @constant
(variable) @keyword.directive (variable) @constant
(call (call
function: function:
[(variable) (atom)] @keyword.directive) [(variable) (atom)] @keyword.directive)
@ -99,6 +99,11 @@
(comment) @comment (comment) @comment
; Macros ; Macros
(macro
"?"+ @constant
name: (_) @constant
!arguments)
(macro (macro
"?"+ @keyword.directive "?"+ @keyword.directive
name: (_) @keyword.directive) name: (_) @keyword.directive)

Loading…
Cancel
Save