#198: Add '%' to operator list in quote if needed.

Since the Lexer is looking for '%' as operators, it too needs to be quoted in
order to allow the data files to be parsed properly.
This commit is contained in:
Shaun Ruffell 2019-01-06 00:23:56 -06:00 committed by lauft
parent 465d3bd676
commit 01d1142480

View file

@ -59,7 +59,7 @@ std::string quoteIfNeeded (const std::string& input)
auto quote = input.find ('"'); auto quote = input.find ('"');
auto space = input.find (' '); auto space = input.find (' ');
auto op = input.find_first_of ("+-/()<^!=~_"); auto op = input.find_first_of ("+-/()<^!=~_%");
if (quote == std::string::npos && if (quote == std::string::npos &&
space == std::string::npos && space == std::string::npos &&