X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.h;h=24ac39a63f7f574d1e9a8a7dfc1f8236cc51612a;hp=9f080dcb139fbd7ba3f6fbbf1e7d7e8031dd702e;hb=01ead27dd900bb6a396083d43a1a11ed881c002f;hpb=73c085a461beef2e33b3a6b7b2b44d1e8e1b087f diff --git a/lexer.h b/lexer.h index 9f080dc..24ac39a 100644 --- a/lexer.h +++ b/lexer.h @@ -87,7 +87,11 @@ enum { TOKEN_WHITE, TOKEN_EOL, - TOKEN_EOF, + /* if we add additional tokens before this, the exposed API + * should not be broken anyway, but EOF/ERROR/... should + * still be at the bottom + */ + TOKEN_EOF = 1024, /* We use '< TOKEN_ERROR', so TOKEN_FATAL must come after it and any * other error related tokens as well