erlang: Fix highlighting of empty records

For example

    -record(state, {})

Would not highlight `state` as a type since the alternation didn't
allow for an empty tuple. Allowing the inner atom of the tuple to be
optional fixes this case.
pull/3612/head
Michael Davis 2 years ago committed by Blaž Hrastnik
parent acf3599723
commit ac669ade05

@ -18,7 +18,7 @@
. .
[(atom) @type (macro)] [(atom) @type (macro)]
[ [
(tuple (atom) @variable.other.member) (tuple (atom)? @variable.other.member)
(tuple (tuple
(binary_operator (binary_operator
left: (atom) @variable.other.member left: (atom) @variable.other.member

Loading…
Cancel
Save