Skip to content

Commit 3c14b0f

Browse files
committed
Wrap up
1 parent 16bbb8b commit 3c14b0f

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

lib/elixir/lib/code.ex

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,13 +1365,11 @@ defmodule Code do
13651365
{forms, comments}
13661366

13671367
{:error, {location, error, token}} ->
1368-
:elixir_errors.parse_error(
1369-
location,
1370-
Keyword.get(opts, :file, "nofile"),
1371-
error,
1372-
token,
1373-
{charlist, Keyword.get(opts, :line, 1), Keyword.get(opts, :column, 1)}
1374-
)
1368+
file = Keyword.get(opts, :file, "nofile")
1369+
line = Keyword.get(opts, :line, 1)
1370+
column = Keyword.get(opts, :column, 1)
1371+
input = {charlist, line, column, Keyword.get(opts, :indentation, 0)}
1372+
:elixir_errors.parse_error(location, file, error, token, input)
13751373
end
13761374
end
13771375

lib/iex/lib/iex/evaluator.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ defmodule IEx.Evaluator do
8282
opts[:file],
8383
"incomplete expression",
8484
"",
85-
{~c"", Keyword.get(opts, :line, 1), Keyword.get(opts, :column, 1)}
85+
{~c"", Keyword.get(opts, :line, 1), Keyword.get(opts, :column, 1), 0}
8686
)
8787
end
8888

@@ -119,7 +119,7 @@ defmodule IEx.Evaluator do
119119
file,
120120
error,
121121
token,
122-
{charlist, line, column}
122+
{charlist, line, column, 0}
123123
)
124124
end
125125
end

0 commit comments

Comments
 (0)