For errors in config file, report the whole unrecognized token

(and quit right after it) instead of error per char.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@405 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2008-01-06 19:35:14 +00:00
parent ada1c093b6
commit 61ac74268c
1 changed files with 2 additions and 1 deletions

View File

@ -93,8 +93,9 @@ DEFINE { return TYPE_DEFINE_GAME; }
\n { line++; col = 0; }
. {
[0-9a-zA-Z_]+ {
fprintf(stderr, "%s:%d:%d unrecognized token \"%s\"\n", config, line, col, yytext);
graceful_exit(1);
}
%%