mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
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.
This commit is contained in:
parent
acf3599723
commit
ac669ade05
@ -18,7 +18,7 @@
|
||||
.
|
||||
[(atom) @type (macro)]
|
||||
[
|
||||
(tuple (atom) @variable.other.member)
|
||||
(tuple (atom)? @variable.other.member)
|
||||
(tuple
|
||||
(binary_operator
|
||||
left: (atom) @variable.other.member
|
||||
|
Loading…
Reference in New Issue
Block a user