Adjust yylineno properly when rewinding trailing contexts.