From ba21718f71d947bb2f491bc39441cfc4e95dd48a Mon Sep 17 00:00:00 2001 From: Sofia Date: Tue, 28 Apr 2026 01:06:53 +0300 Subject: [PATCH] Format unary plus correctly --- src/ast.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ast.cpp b/src/ast.cpp index 151175b..03d20fe 100644 --- a/src/ast.cpp +++ b/src/ast.cpp @@ -111,6 +111,9 @@ namespace AST { case types::Unary::Negation: out << "-" << this->m_expr->formatted(); break; + case types::Unary::Plus: + out << "+" << this->m_expr->formatted(); + break; default: break; }