summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-12-27 23:14:03 +0900
committergit <svn-admin@ruby-lang.org>2021-12-30 20:52:06 +0900
commit9295732af8a8f27c74abbe5ad70abc95e0e65565 (patch)
tree6b24535e778229b201f68d565ee94e6e02972a3e /test
parentf589242e750939eecf2a140fa3182dc5e387f157 (diff)
[ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
Diffstat (limited to 'test')
-rw-r--r--test/reline/yamatanooroti/termination_checker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/termination_checker.rb b/test/reline/yamatanooroti/termination_checker.rb
index 9c2c3ae740..24fb24c4b1 100644
--- a/test/reline/yamatanooroti/termination_checker.rb
+++ b/test/reline/yamatanooroti/termination_checker.rb
@@ -4,7 +4,7 @@ require 'irb/ruby-lex'
class TerminationChecker < RubyLex
def terminated?(code)
code.gsub!(/\n*$/, '').concat("\n")
- @tokens = Ripper.lex(code)
+ @tokens = self.class.ripper_lex_without_warning(code)
continue = process_continue
code_block_open = check_code_block(code)
indent = process_nesting_level