Don't print closing ] in error indicator.
All checks were successful
Remind unit tests / tests (push) Successful in 31s

This commit is contained in:
Dianne Skoll
2024-09-01 22:39:49 -04:00
parent ce2b2e80da
commit d0e45e727e

View File

@@ -2522,6 +2522,8 @@ expr_node *parse_expression(char const **e, int *r, Var *locals)
if (*orig == '\n') {
fprintf(ErrFp, " ");
orig++;
} else if (*orig == ']' && ! *(orig+1)) {
break;
} else {
fprintf(ErrFp, "%c", *orig++);
}