Skip to content

Commit

Permalink
erlang: highlight records with macro names
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the-mikedavis committed Jun 30, 2022
1 parent 52a14b4 commit 709eb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/queries/erlang/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
name: (atom) @keyword
(arguments
.
(atom) @type
[(atom) @type (macro)]
[
(tuple (atom) @variable.other.member)
(tuple
Expand Down

0 comments on commit 709eb14

Please sign in to comment.