From 808219f9c713bdf612490193b10cd5a9fe97ab7d Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Wed, 15 Dec 2021 23:11:54 +0100 Subject: [PATCH] expr: Fix printing assignments --- src/expr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/expr.c b/src/expr.c index 6c1b951..336acd5 100644 --- a/src/expr.c +++ b/src/expr.c @@ -685,10 +685,10 @@ print_expr(struct apfl_expr *expr, unsigned indent, FILE *f) } break; case APFL_EXPR_ASSIGNMENT: - print_indented(indent, f, "Assignment"); - print_indented(indent+1, f, "LHS"); + print_indented(indent, f, "Assignment\n"); + print_indented(indent+1, f, "LHS\n"); print_assignable(expr->assignment.lhs, indent+2, f); - print_indented(indent+1, f, "RHS"); + print_indented(indent+1, f, "RHS\n"); print_expr(expr->assignment.rhs, indent+2, f); break; case APFL_EXPR_DOT: