validateWriteContext: Apply early break when detected the OR operator

This commit is contained in:
Tomas Babej 2021-11-06 11:20:24 -04:00
parent 04ef785eea
commit 7de681aa3b
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -123,7 +123,10 @@ bool CmdContext::validateWriteContext (const std::vector <A2>& lexedArgs, std::s
for (auto &arg: lexedArgs) {
if (arg._lextype == Lexer::Type::op)
if (arg.attribute ("raw") == "or")
{
contains_or = true;
break;
}
if (arg._lextype == Lexer::Type::pair) {
auto modifier = arg.attribute ("modifier");