зеркало из https://github.com/github/ruby.git
[ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
This commit is contained in:
Родитель
f589242e75
Коммит
9295732af8
|
@ -4,7 +4,7 @@ require 'irb/ruby-lex'
|
||||||
class TerminationChecker < RubyLex
|
class TerminationChecker < RubyLex
|
||||||
def terminated?(code)
|
def terminated?(code)
|
||||||
code.gsub!(/\n*$/, '').concat("\n")
|
code.gsub!(/\n*$/, '').concat("\n")
|
||||||
@tokens = Ripper.lex(code)
|
@tokens = self.class.ripper_lex_without_warning(code)
|
||||||
continue = process_continue
|
continue = process_continue
|
||||||
code_block_open = check_code_block(code)
|
code_block_open = check_code_block(code)
|
||||||
indent = process_nesting_level
|
indent = process_nesting_level
|
||||||
|
|
Загрузка…
Ссылка в новой задаче