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.
pull/2938/head
Michael Davis 2022-06-29 08:55:00 -05:00 committed by Blaž Hrastnik
parent bf1aa8876c
commit 19acbfe02d
1 changed files with 1 additions and 1 deletions

View File

@ -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