Skip to content

Commit

Permalink
Avoid warnings on latest Elixir
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 8, 2023
1 parent 4d9587d commit a52da1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/makeup/lexer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ defmodule Makeup.Lexer do

all_but_last_line =
parts
|> Enum.slice(0..-2)
|> Enum.drop(-1)
|> Enum.map(fn tok_text -> [{ttype, meta, tok_text}] end)
|> :lists.reverse
|> :lists.reverse()

last_line = [{ttype, meta, Enum.at(parts, -1)}]

Expand Down

0 comments on commit a52da1f

Please sign in to comment.