summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 1274a15e9f..d700d004a0 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -156,12 +156,13 @@ module IRB
end
if exc
print exc.class, ": ", exc, "\n"
- if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/
+ if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ &&
+ !(SyntaxError === exc)
irb_bug = true
else
irb_bug = false
end
-
+
messages = []
lasts = []
levels = 0