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 name: (atom) @keyword
(arguments (arguments
. .
(atom) @type [(atom) @type (macro)]
[ [
(tuple (atom) @variable.other.member) (tuple (atom) @variable.other.member)
(tuple (tuple

Loading…
Cancel
Save