diff --git a/config.l b/config.l index 590664e..103f2cc 100644 --- a/config.l +++ b/config.l @@ -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); } %%