From e0a386fa8f884610ed1005462740d5db57d4ad3e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 19 Mar 2025 16:22:29 -0400 Subject: Replace "begin"/"end" with "do_begin"/"do_end" --- parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 5110e98e..93876cfd 100644 --- a/parse.c +++ b/parse.c @@ -53,7 +53,7 @@ int op_tightness[] = { static const char *keywords[] = { "yes", "xor", "while", "when", "use", "unless", "struct", "stop", "skip", "return", "or", "not", "none", "no", "mutexed", "mod1", "mod", "pass", "lang", "inline", "in", "if", "holding", - "func", "for", "extern", "enum", "end", "else", "do", "deserialize", "defer", "begin", "and", + "func", "for", "extern", "enum", "do_end", "else", "do", "deserialize", "defer", "do_begin", "and", "_min_", "_max_", NULL, }; @@ -1172,16 +1172,16 @@ PARSER(parse_for) { } PARSER(parse_do) { - // [begin: [] block] [end: [] block] do: [] body + // [do_begin: [] block] [do_end: [] block] do: [] body const char *start = pos; int64_t starting_indent = get_indent(ctx, pos); ast_t *begin = NULL, *end = NULL; - if (match_word(&pos, "begin")) + if (match_word(&pos, "do_begin")) begin = optional(ctx, &pos, parse_block); const char *tmp = pos; whitespace(&tmp); - if (get_indent(ctx, tmp) == starting_indent && match_word(&tmp, "end")) { + if (get_indent(ctx, tmp) == starting_indent && match_word(&tmp, "do_end")) { pos = tmp; end = optional(ctx, &pos, parse_block); } -- cgit v1.2.3