From a90ef1973f1903a50f81797deb8611dd3373fb23 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 6 Sep 2024 22:30:46 -0400 Subject: Don't parse suffixes on interpolations --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index e7f2d19f..74be5abd 100644 --- a/parse.c +++ b/parse.c @@ -1228,7 +1228,7 @@ PARSER(parse_text) { ast_t *interp; if (*pos == ' ' || *pos == '\t') parser_err(ctx, pos, pos+1, "Whitespace is not allowed before an interpolation here"); - interp = expect(ctx, interp_start, &pos, parse_term, "I expected an interpolation term here"); + interp = expect(ctx, interp_start, &pos, parse_term_no_suffix, "I expected an interpolation term here"); chunks = new(ast_list_t, .ast=interp, .next=chunks); chunk_start = pos; } else if (!leading_newline && *pos == open_quote && closing[(int)open_quote]) { // Nested pair begin -- cgit v1.2.3