зеркало из https://github.com/github/ruby.git
Fix typos in Ripper::Lexer#inspect and Ripper::Lexer#pretty_print
This commit is contained in:
Родитель
ccfb12d76c
Коммит
72333286c4
|
@ -66,13 +66,13 @@ class Ripper
|
|||
end
|
||||
|
||||
def inspect
|
||||
"#<#{self.class}: #{event}@#{pos[0]}:#{pos[0]}:#{state}: #{tok.inspect}>"
|
||||
"#<#{self.class}: #{event}@#{pos[0]}:#{pos[1]}:#{state}: #{tok.inspect}>"
|
||||
end
|
||||
|
||||
def pretty_print(q)
|
||||
q.group(2, "#<#{self.class}:", ">") {
|
||||
q.breakable
|
||||
q.text("#{event}@#{pos[0]}:#{pos[0]}")
|
||||
q.text("#{event}@#{pos[0]}:#{pos[1]}")
|
||||
q.breakable
|
||||
q.text("token: ")
|
||||
tok.pretty_print(q)
|
||||
|
|
Загрузка…
Ссылка в новой задаче