diff options
| author | Mel <mel@rnrd.eu> | 2025-06-03 01:47:10 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-06-03 01:47:10 +0200 |
| commit | f6a8dfe45429fb9ada5fa98dac23d91532ed7466 (patch) | |
| tree | 2706648cd8f7462657fd2ebe4bc0b4d0ca89addd /boot/parse.c | |
| parent | f4bcdb0373ac34349c6ecdb9a894c561e0cd419c (diff) | |
| download | catskill-f6a8dfe45429fb9ada5fa98dac23d91532ed7466.tar.zst catskill-f6a8dfe45429fb9ada5fa98dac23d91532ed7466.zip | |
Fix wrong token used in `parse_expression_primary_group`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/parse.c')
| -rw-r--r-- | boot/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/parse.c b/boot/parse.c index 1c42352..9f10d27 100644 --- a/boot/parse.c +++ b/boot/parse.c @@ -297,7 +297,7 @@ parser_expression_primary_group(struct Parser* p, struct Parser_Error* error) { struct Token start_token = CHECK(parser_need(p, TOKEN_ROUND_OPEN, error)); struct Expression* expression = CHECK(parser_expression(p, error)); - struct Token end_token = CHECK(parser_need(p, TOKEN_ROUND_OPEN, error)); + struct Token end_token = CHECK(parser_need(p, TOKEN_ROUND_CLOSE, error)); struct Span span = span_merge(start_token.span, end_token.span); union Expression_Value value = { .group = { expression } }; |
