summaryrefslogtreecommitdiff
path: root/lib/method_source/code_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/method_source/code_helpers.rb')
-rw-r--r--lib/method_source/code_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/method_source/code_helpers.rb b/lib/method_source/code_helpers.rb
index b3c33de..c564f54 100644
--- a/lib/method_source/code_helpers.rb
+++ b/lib/method_source/code_helpers.rb
@@ -125,7 +125,7 @@ module MethodSource
def self.===(ex)
return false unless SyntaxError === ex
case ex.message
- when /unexpected (\$end|end-of-file|END_OF_FILE)/, # mri, jruby, ironruby
+ when /unexpected (\$end|end-of-file|end-of-input|END_OF_FILE)/, # mri, jruby, ruby-2.0, ironruby
/embedded document meets end of file/, # =begin
/unterminated (quoted string|string|regexp) meets end of file/, # "quoted string" is ironruby
/missing 'end' for/, /: expecting '[})\]]'$/, /can't find string ".*" anywhere before EOF/, /: expecting keyword_end/, /expecting kWHEN/ # rbx