erlang: highlight nullary macros as constants

This commit is contained in:
Michael Davis 2022-06-14 09:39:45 -05:00 committed by Blaž Hrastnik
parent 26501afe13
commit d523280e85

View file

@ -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)