We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac361a commit ac44e72Copy full SHA for ac44e72
lib/iex/lib/iex/evaluator.ex
@@ -69,9 +69,10 @@ defmodule IEx.Evaluator do
69
"""
70
def parse(input, opts, parser_state)
71
72
- def parse(input, opts, []), do: parse(input, opts, :other)
+ def parse(input, opts, []), do: parse(input, opts, {[], :other})
73
74
- def parse(input, opts, last_op) do
+ def parse(input, opts, {buffer, last_op}) do
75
+ input = buffer ++ input
76
file = Keyword.get(opts, :file, "nofile")
77
line = Keyword.get(opts, :line, 1)
78
column = Keyword.get(opts, :column, 1)
@@ -106,10 +107,10 @@ defmodule IEx.Evaluator do
106
107
108
case result do
109
{:ok, forms, last_op} ->
- {:ok, forms, last_op}
110
+ {:ok, forms, {[], last_op}}
111
112
{:error, {_, _, ""}} ->
- {:incomplete, last_op}
113
+ {:incomplete, {input, last_op}}
114
115
{:error, {location, error, token}} ->
116
:elixir_errors.parse_error(
0 commit comments