ruby-changes:70661
From: aycabta <ko1@a...>
Date: Thu, 30 Dec 2021 20:52:24 +0900 (JST)
Subject: [ruby-changes:70661] 9295732af8 (master): [ruby/reline] Use ripper_lex_without_warning
https://git.ruby-lang.org/ruby.git/commit/?id=9295732af8 From 9295732af8a8f27c74abbe5ad70abc95e0e65565 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 27 Dec 2021 23:14:03 +0900 Subject: [ruby/reline] Use ripper_lex_without_warning https://github.com/ruby/reline/commit/b7536dc224 --- test/reline/yamatanooroti/termination_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/reline/yamatanooroti/termination_checker.rb b/test/reline/yamatanooroti/termination_checker.rb index 9c2c3ae740e..24fb24c4b15 100644 --- a/test/reline/yamatanooroti/termination_checker.rb +++ b/test/reline/yamatanooroti/termination_checker.rb @@ -4,7 +4,7 @@ require 'irb/ruby-lex' https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/termination_checker.rb#L4 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/