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.
commitac669ade0587e717c071386f665d05f61d646a61
authorMichael Davis <mcarsondavis@gmail.com>
dateTue 9 Aug 2022, 11:27 (4 years ago)
parentacf3599
runtime/queries/erlang/highlights.scm+1−1
@@ -18,7 +18,7 @@
1818 .
1919 [(atom) @type (macro)]
2020 [
21− (tuple (atom) @variable.other.member)
21+ (tuple (atom)? @variable.other.member)
2222 (tuple
2323 (binary_operator
2424 left: (atom) @variable.other.member