svoid tok_retShortForReturn(LS tok) { jreplace(tok, "ret", "return", tokCondition { // haphazard attempts to find out if we are actually dealing // with a variable called "ret" if (eqGetOneOf(tok, i-1, "int", "return", "(", "&")) false; S next = _get(tok, i+3); if (eq(next, ".")) ret isInteger(_get(tok, i+5)); // e.g. "ret .1", but not "ret.bla" ret !eqOneOf(next, "=", ")"); }); }