harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c25e3bc97b73d9f450f8453954b180a6b02d8250
parent e60f32e8665b0e1c70168da6fdae773b03749a71
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  6 Apr 2021 12:09:23 -0400

parse: fix omission in postfix measure case

Diffstat:
Msrc/parse.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/parse.c b/src/parse.c @@ -1452,6 +1452,8 @@ parse_postfix_expression(struct lexer *lexer, struct ast_expression *lvalue) case T_SIZE: case T_LEN: case T_OFFSET: + synassert(lvalue == NULL, &tok, T_LPAREN, T_DOT, T_LBRACKET, + T_EOF); unlex(lexer, &tok); return parse_measurement_expression(lexer); default: