From 5977d3cdd4b241ab7afff868ed58afc00b45c424 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 15 Aug 2024 18:06:19 -0700 Subject: unposted: fix parsing of Bang token in value side of array element assignment --- Src/lex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/lex.c b/Src/lex.c index 700af2da1..efbb62b66 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1402,10 +1402,11 @@ gettokstr(int c, int sub) /* * Same logic as Dash, for ! to perform negation in range. */ - if (seen_brct) + if (seen_brct && brct) c = Bang; else c = '!'; + break; case LX2_OTHER: if (in_brace_param) { if (c == '/') { -- cgit v1.2.3