ripper: return pushed new token instead of the token list

This commit is contained in:
Nobuyoshi Nakada 2020-12-15 09:37:11 +09:00
parent c59b9a8c0c
commit 7898f4243f
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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)