summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2019-10-24 11:40:44 +0200
committerJean Boussier <jean.boussier@gmail.com>2019-10-26 17:22:30 +0200
commit5461b17602b465f8d259e25f0e749c4dff8b6208 (patch)
treece5c4feae3831446a8126f9dcbc2043cbd80e9d2 /lib
parentf7cdccb814f9dcc72a7075a4d548b4568c90285b (diff)
downloadmethod_source-5461b17602b465f8d259e25f0e749c4dff8b6208.tar.gz
Handle new message for unterminated lists on MRI 2.7
The error message for `issue = %W/` changed, before: ``` (eval):2: syntax error, unexpected tSTRING_END, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or ' ' ``` After: ``` ((eval):2: unterminated list meets end of file) ```
Diffstat (limited to 'lib')
-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 9d9da55..ccf054a 100644
--- a/lib/method_source/code_helpers.rb
+++ b/lib/method_source/code_helpers.rb
@@ -125,7 +125,7 @@ module MethodSource
GENERIC_REGEXPS = [
/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
+ /unterminated (quoted string|string|regexp|list) meets end of file/, # "quoted string" is ironruby
/can't find string ".*" anywhere before EOF/, # rbx and jruby
/missing 'end' for/, /expecting kWHEN/ # rbx
]