Skip to content

Commit 1de5881

Browse files
committed
Merge pull request #63 from kylekyle/master
PryBackend syntax errors
2 parents 8fe6e5c + e8f6cd4 commit 1de5881

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/iruby/backend.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def eval(code, store_history)
6666
reset
6767
raise SystemExit
6868
end
69+
unless @pry.eval_string.empty?
70+
syntax_error = @pry.eval_string
71+
@pry.reset_eval_string
72+
@pry.evaluate_ruby syntax_error
73+
end
6974
raise @pry.last_exception if @pry.last_result_is_exception?
7075
@pry.push_initial_binding unless @pry.current_binding # ensure that we have a binding
7176
@pry.last_result

0 commit comments

Comments
 (0)