diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-25 14:35:38 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-25 14:35:38 -0400 |
| commit | 9496c4abcbaa823f7c63ac4e8dc86a514a9b5ef1 (patch) | |
| tree | f270c505aa1cad0254b17f5c959a8552517bf5e9 /parse.c | |
| parent | a1978752141835c386012fff15ceb36261f37997 (diff) | |
Minor cleanup
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <condition> [then] <body> [else <body>] + // if <condition> <body> [else <body>] const char *start = pos; int64_t starting_indent = get_indent(ctx, pos); @@ -986,7 +986,7 @@ PARSER(parse_if) { } PARSER(parse_when) { - // when <expr> (is var : Tag [then] <body>)* [else <body>] + // when <expr> (is var : Tag <body>)* [else <body>] const char *start = pos; int64_t starting_indent = get_indent(ctx, pos); |
