mirror of https://github.com/helix-editor/helix
erlang: highlight nullary macros as constants
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…
Reference in New Issue