summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-10-28 10:34:12 +0800
committerGitHub <noreply@github.com>2019-10-28 10:34:12 +0800
commit24ccd7fa619245abddeb03fcf40c8cb452dc5666 (patch)
tree512779fe0a4813274d3aec973a9bd74741124035
parentf7cdccb814f9dcc72a7075a4d548b4568c90285b (diff)
parenta7334bbcc36bcb60b3bb42f796bd72af7828bb82 (diff)
downloadmethod_source-24ccd7fa619245abddeb03fcf40c8cb452dc5666.tar.gz
Merge pull request #59 from casperisfine/fix-ruby-2.7
Handle new message for unterminated lists on MRI 2.7
-rw-r--r--.travis.yml1
-rw-r--r--lib/method_source/code_helpers.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index ffd2772..016f248 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,7 @@ rvm:
- "2.4"
- "2.5"
- "2.6"
+ - "2.7"
- ruby-head
matrix:
allow_failures:
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
]