aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang
diff options
context:
space:
mode:
authorMichael Davis2022-06-29 13:55:00 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commit19acbfe02d6a6ff9496d46e02661b67e65b94923 (patch)
treee1149be949f1c24a920a88d4cd5038e8ee54e213 /runtime/queries/erlang
parentbf1aa8876c5e9e7ccf6ab4ae66997c45ac3c4b95 (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.
Diffstat (limited to 'runtime/queries/erlang')
-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