From c3f4b7153b3815daf271829148f40d545a6140ef Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 25 Apr 2013 17:39:12 +0200 Subject: [PATCH 1/1] change the value of TOKEN_EOF --- lexer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2