Skip to content

Commit

Permalink
fix: remove current_newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Cervello authored and Luca Cervello committed Feb 9, 2024
1 parent b78bc11 commit 64537cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spitfire.ex
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ defmodule Spitfire do
extra_meta = [from_brackets: true]

newlines =
case current_newlines(parser) || peek_newlines(parser, :eol) do
case peek_newlines(parser, :eol) do
nil -> []
nl -> [newlines: nl]
end
Expand Down
1 change: 1 addition & 0 deletions test/spitfire_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule SpitfireTest do
"state.parent_meta[:line]",
"@preferred_envs[task]",
"!!meta[:diff]",
"foo[1]",
~S'''
foo[
:bar
Expand Down

0 comments on commit 64537cf

Please sign in to comment.