diff options
author | Conrad Irwin <conrad.irwin@gmail.com> | 2012-09-11 16:05:15 -0700 |
---|---|---|
committer | Conrad Irwin <conrad.irwin@gmail.com> | 2012-09-11 16:05:15 -0700 |
commit | 6a9c769ebfbf8c93513e2ddbba77360a73726a8f (patch) | |
tree | 3c7f1a4e25c6c352648998ae676f8d5fd720e69a | |
parent | 921c1f396d28623e453d1a177b456cfcef4a7cd6 (diff) | |
download | method_source-6a9c769ebfbf8c93513e2ddbba77360a73726a8f.tar.gz |
Basic ruby-2.0 support
-rw-r--r-- | lib/method_source/code_helpers.rb | 2 |
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 |