lexer, parser: pass around lua version

This commit is contained in:
2026-04-19 17:07:05 +02:00
parent 92b85584c1
commit 1807520170
6 changed files with 23 additions and 11 deletions

View File

@@ -128,7 +128,7 @@ const char *noomL_formatTokenType(noomL_TokenType token_type) {
}
noomL_ErrorType noomL_lex(const char* s, noom_uint_t start, noomL_Token* token) {
noomL_ErrorType noomL_lex(const char* s, noom_uint_t start, noomL_Token* token, noom_LuaVersion version) {
const char* str = s + start;
if (str[0] == '\0') {