Unnamed repository; edit this file 'description' to name the repository.
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.
Michael Davis 2022-08-31
parent acf3599 · commit ac669ad
-rw-r--r--runtime/queries/erlang/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm
index 8e4a640d..58c8fb8a 100644
--- a/runtime/queries/erlang/highlights.scm
+++ b/runtime/queries/erlang/highlights.scm
@@ -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