method
get_end_token
v2_1_10 -
Show latest stable
- Class:
RDoc::Parser::Ruby
get_end_token(tk)public
Little hack going on here. In the statement:
f = 2*(1+yield)
We see the RPAREN as the next token, so we need to exit early. This still won’t catch all cases (such as “a = yield + 1”