Unnamed repository; edit this file 'description' to name the repository.
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.
Michael Davis 2022-07-01
parent bf1aa88 · commit 19acbfe
-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 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