aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-25 14:35:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-25 14:35:38 -0400
commit9496c4abcbaa823f7c63ac4e8dc86a514a9b5ef1 (patch)
treef270c505aa1cad0254b17f5c959a8552517bf5e9 /parse.c
parenta1978752141835c386012fff15ceb36261f37997 (diff)
Minor cleanup
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 3 insertions, 3 deletions
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 <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);