Better formatting of ^-- here message for expressions with embedded newlines

This commit is contained in:
Dianne Skoll
2024-09-01 11:27:34 -04:00
parent 01cb028532
commit 11771b7d3d

View File

@@ -2519,7 +2519,12 @@ expr_node *parse_expression(char const **e, int *r, Var *locals)
*r == E_ILLEGAL_CHAR) {
orig = o2;
while (*orig) {
fprintf(ErrFp, "%c", *orig++);
if (*orig == '\n') {
fprintf(ErrFp, " ");
orig++;
} else {
fprintf(ErrFp, "%c", *orig++);
}
}
fprintf(ErrFp, "\n");
orig = o2;