]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.h
gitignore: add gmqcc, gmqpak, qmcvm, testsuite, pak.
[xonotic/gmqcc.git] / lexer.h
diff --git a/lexer.h b/lexer.h
index 9f080dcb139fbd7ba3f6fbbf1e7d7e8031dd702e..24ac39a63f7f574d1e9a8a7dfc1f8236cc51612a 100644 (file)
--- 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