[ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
This commit is contained in:
parent
f589242e75
commit
9295732af8
@ -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…
x
Reference in New Issue
Block a user