diff --git a/components/compiler/exprparser.cpp b/components/compiler/exprparser.cpp index d35b08167..c739048a6 100644 --- a/components/compiler/exprparser.cpp +++ b/components/compiler/exprparser.cpp @@ -791,7 +791,7 @@ namespace Compiler if (*iter=='c') stringParser.smashCase(); scanner.scan (stringParser); - if (optional && stringParser.isEmpty()) + if ((optional || *iter=='x') && stringParser.isEmpty()) break; if (*iter!='x')