From 9496c4abcbaa823f7c63ac4e8dc86a514a9b5ef1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 25 Aug 2024 14:35:38 -0400 Subject: Minor cleanup --- parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 95fc09ef..af011877 100644 --- a/parse.c +++ b/parse.c @@ -57,7 +57,7 @@ int op_tightness[] = { #define MAX_TIGHTNESS 9 static const char *keywords[] = { - "yes", "xor", "while", "when", "use", "then", "struct", "stop", "skip", "return", + "yes", "xor", "while", "when", "use", "struct", "stop", "skip", "return", "or", "not", "no", "mod1", "mod", "pass", "lang", "import", "inline", "in", "if", "func", "for", "extern", "enum", "else", "do", "defer", "and", "_min_", "_max_", NULL, @@ -959,7 +959,7 @@ ast_t *parse_optional_conditional_suffix(parse_ctx_t *ctx, ast_t *stmt) { } PARSER(parse_if) { - // if [then] [else ] + // if [else ] const char *start = pos; int64_t starting_indent = get_indent(ctx, pos); @@ -986,7 +986,7 @@ PARSER(parse_if) { } PARSER(parse_when) { - // when (is var : Tag [then] )* [else ] + // when (is var : Tag )* [else ] const char *start = pos; int64_t starting_indent = get_indent(ctx, pos); -- cgit v1.2.3