From c6bc836ecb293d7a22466ebd9d9417377b633085 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 4 Feb 2014 20:32:27 -0600 Subject: [PATCH] Add support for unary + - Other languages can do this, and carlcyber noticed ACC couldn't, so now it can. --- parse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parse.c b/parse.c index 8ba13f7..9bbc575 100644 --- a/parse.c +++ b/parse.c @@ -3410,6 +3410,11 @@ static void ExprLevX(int level) unaryMinus = TRUE; TK_NextToken(); } + if(tk_Token == TK_PLUS) + { + // Completely ignore unary plus + TK_NextToken(); + } if(ConstantExpression == YES) { ConstExprFactor();