mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
This commit is contained in:
parent
f589242e75
commit
9295732af8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue