diff options
author | aycabta <aycabta@gmail.com> | 2021-12-27 23:14:03 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-30 20:52:06 +0900 |
commit | 9295732af8a8f27c74abbe5ad70abc95e0e65565 (patch) | |
tree | 6b24535e778229b201f68d565ee94e6e02972a3e /test/reline/yamatanooroti | |
parent | f589242e750939eecf2a140fa3182dc5e387f157 (diff) | |
download | ruby-9295732af8a8f27c74abbe5ad70abc95e0e65565.tar.gz |
[ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
Diffstat (limited to 'test/reline/yamatanooroti')
-rw-r--r-- | test/reline/yamatanooroti/termination_checker.rb | 2 |
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 |