1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix the error counter reset in Lemon generated parsers. This has no effect

on SQLite.

FossilOrigin-Name: 3ef93950d30b34d852d6bbc101d433a04112868a
This commit is contained in:
drh
2016-07-12 19:54:49 +00:00
parent e234cfd11f
commit dd703e22a5
3 changed files with 11 additions and 11 deletions

View File

@ -755,6 +755,9 @@ static void yy_accept(
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
}
#endif
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
assert( yypParser->yytos==yypParser->yystack );
/* Here code is inserted which will be executed whenever the
@ -898,9 +901,6 @@ void Parse(
** they intend to abandon the parse upon the first syntax error seen.
*/
yy_syntax_error(yypParser,yymajor, yyminor);
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
yymajor = YYNOCODE;