When reset_pos() is invoked, YY_USER_ACTION() has already advanced the
line offset to the next line. This causes errors for unexpected newlines
to incorrectly show the following line when reading from files.
Signed-off-by: Patrick McHardy <kaber@trash.net>
state->indesc->line_offset = state->indesc->token_offset;
state->indesc->lineno += 1;
state->indesc->column = 1;
- loc->line_offset = state->indesc->line_offset;
}
#define YY_USER_ACTION { \