From 12fa5614d37559877e5afd0e12d64c6944dc99bc Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 30 Nov 2020 09:47:37 -0800 Subject: [PATCH] Fixed parsing of ternary expressions with string literal results --- IDEHelper/Compiler/BfParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfParser.cpp b/IDEHelper/Compiler/BfParser.cpp index eb012ba2..e2a5b0b1 100644 --- a/IDEHelper/Compiler/BfParser.cpp +++ b/IDEHelper/Compiler/BfParser.cpp @@ -3284,7 +3284,7 @@ void BfParser::ParseBlock(BfBlock* astNode, int depth, bool isInterpolate) isAsmBlock = true; } - NextToken(-1, isInterpolate); + NextToken(-1, isInterpolate && (parenDepth == 0)); if (mPreprocessorIgnoredSectionNode != NULL) {