diff options
author | Michael Davis | 2022-06-29 13:55:00 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-07-01 09:04:23 +0000 |
commit | 19acbfe02d6a6ff9496d46e02661b67e65b94923 (patch) | |
tree | e1149be949f1c24a920a88d4cd5038e8ee54e213 | |
parent | bf1aa8876c5e9e7ccf6ab4ae66997c45ac3c4b95 (diff) |
erlang: highlight records with macro names
You might use a macro like `?MODULE` to name a record:
-record(?MODULE, {a, b, c}).
With this fix, the record fields correctly get `variable.other.member`
highlights.
-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 31a594b6..cb128905 100644 --- a/runtime/queries/erlang/highlights.scm +++ b/runtime/queries/erlang/highlights.scm @@ -16,7 +16,7 @@ name: (atom) @keyword (arguments . - (atom) @type + [(atom) @type (macro)] [ (tuple (atom) @variable.other.member) (tuple |