mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ripper: return pushed new token instead of the token list
This commit is contained in:
parent
c59b9a8c0c
commit
7898f4243f
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,9 @@ class Ripper
|
|||
end
|
||||
|
||||
def _push_token(tok)
|
||||
@buf.push Elem.new([lineno(), column()], __callee__, tok, state())
|
||||
e = Elem.new([lineno(), column()], __callee__, tok, state())
|
||||
@buf.push(e)
|
||||
e
|
||||
end
|
||||
|
||||
def on_error(mesg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue