diff options
author | Michael Davis | 2022-08-09 16:27:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-08-31 08:46:34 +0000 |
commit | ac669ade0587e717c071386f665d05f61d646a61 (patch) | |
tree | 7688bc0412df79f13e31a4ab0696c00f3933a9b7 | |
parent | acf35997233657cd9e990d875d5ce2c884b9f72e (diff) |
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.
-rw-r--r-- | runtime/queries/erlang/highlights.scm | 2 |
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 |