on master help sign in
erlang: highlight nullary macros as constants
d523280Michael Davis
runtime/queries/erlang/highlights.scm+7−2
@@ -38,8 +38,8 @@
38 (arguments
38 (arguments
39 .
39 .
40 [
40 [
41− (atom) @keyword.directive
41+ (atom) @constant
42− (variable) @keyword.directive
42+ (variable) @constant
43 (call
43 (call
44 function:
44 function:
45 [(variable) (atom)] @keyword.directive)
45 [(variable) (atom)] @keyword.directive)
@@ -99,6 +99,11 @@
99(comment) @comment
99(comment) @comment
100
100
101; Macros
101; Macros
102+(macro
103+ "?"+ @constant
104+ name: (_) @constant
105+ !arguments)
106+
102(macro
107(macro
103 "?"+ @keyword.directive
108 "?"+ @keyword.directive
104 name: (_) @keyword.directive)
109 name: (_) @keyword.directive)