erlang: highlight records with macro names

You might use a macro like `?MODULE` to name a record:

    -record(?MODULE, {a, b, c}).

With this fix, the record fields correctly get `variable.other.member`
highlights.
imgbot
Michael Davis 2 years ago committed by Blaž Hrastnik
parent bf1aa8876c
commit 19acbfe02d

@ -16,7 +16,7 @@
name: (atom) @keyword
(arguments
.
(atom) @type
[(atom) @type (macro)]
[
(tuple (atom) @variable.other.member)
(tuple

Loading…
Cancel
Save