From b4607ec3ad5ce54754299db958561eb083d5a447 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 15 May 2018 23:09:34 -0700 Subject: [PATCH] New config working for config.4coder, still needs error messages and error recovery. --- 4coder_config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/4coder_config.cpp b/4coder_config.cpp index fc11a7f2..929622db 100644 --- a/4coder_config.cpp +++ b/4coder_config.cpp @@ -197,6 +197,7 @@ config_parser__assignment(Config_Parser *ctx){ require(config_parser__match_token(ctx, CPP_TOKEN_EQ)); Config_RValue *r = config_parser__rvalue(ctx); require(r != 0); + require(config_parser__match_token(ctx, CPP_TOKEN_SEMICOLON)); Config_Assignment *assignment = push_array(ctx->arena, Config_Assignment, 1); assignment->l = l; @@ -817,7 +818,7 @@ config_parse__data(Partition *scratch, Cpp_Lex_Result result = cpp_lex_step(&S, data.str, data.size + 1, HAS_NULL_TERM, &array, NO_OUT_LIMIT); if (result == LexResult_Finished){ -#if 0 +#if 1 Config *parsed = config_parse(scratch, file_name, data, array); if (parsed != 0){ success = true;