X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/2b7ed18a60c1e3618d189ff773aa9679ebec12a1..ec3bc39:/src/scan-skel.l diff --git a/src/scan-skel.l b/src/scan-skel.l index e7eeaa56..be336079 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -41,7 +41,7 @@ static char *yyoutname = NULL; "@<:@" fputc ('[', yyout); "@:>@" fputc (']', yyout); -"__oline__" fprintf (yyout, "%d", yylineno); +"__oline__" fprintf (yyout, "%d", yylineno+1); "__ofile__" fprintf (yyout, "%s", yyoutname); [^@_\n]+ ECHO; \n+ yylineno += yyleng; ECHO;