X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.h;h=24ac39a63f7f574d1e9a8a7dfc1f8236cc51612a;hp=9f080dcb139fbd7ba3f6fbbf1e7d7e8031dd702e;hb=69b55ccc03b56af1f6c05eb45866ab198307487f;hpb=3a4aba0b31427a6cbea08a959aedf12c2e69a893;ds=sidebyside 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