diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 01:04:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 01:04:53 -0400 |
| commit | de235770913f286a42600f1e3ccf2205b5ff09c3 (patch) | |
| tree | b980dd1f2436bc79beb4cb00fac90558e701a48c /parse.c | |
| parent | 327d466b9543aee3983277ca4158e5b7aa06fdf8 (diff) | |
Allow trailing whitespace in parens expressions
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -458,6 +458,7 @@ PARSER(parse_parens) { whitespace(&pos); ast_t *expr = optional(ctx, &pos, parse_extended_expr); if (!expr) return NULL; + whitespace(&pos); expect_closing(ctx, &pos, ")", "I wasn't able to parse the rest of this expression"); // Update the span to include the parens: |
