From 01d1142480dc67114f59fd445891245766e0c440 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Sun, 6 Jan 2019 00:23:56 -0600 Subject: [PATCH] #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. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 38027855..31fa186c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -59,7 +59,7 @@ std::string quoteIfNeeded (const std::string& input) auto quote = input.find ('"'); auto space = input.find (' '); - auto op = input.find_first_of ("+-/()<^!=~_"); + auto op = input.find_first_of ("+-/()<^!=~_%"); if (quote == std::string::npos && space == std::string::npos &&