erlang: highlight nullary macros as constants
This commit is contained in:
parent
26501afe13
commit
d523280e85
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue