Skip to content

Commit

Permalink
Fix "expression updates a literal" warning for OTP 27 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen authored and michalmuskala committed Feb 21, 2024
1 parent 732d443 commit d217674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlfmt_parse.yrl
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,10 @@ Erlang code.

-define(val(Tok), element(1, Tok)).

-define(range_anno(Tok1, Tok2), #{
-define(range_anno(Tok1, Tok2), begin #{
location => map_get(location, ?anno(Tok1)),
end_location => map_get(end_location, ?anno(Tok2))
}).
} end).

-define(range_upto_anno(Tok1, Tok2), #{
location => map_get(location, ?anno(Tok1)),
Expand Down

0 comments on commit d217674

Please sign in to comment.