Skip to content
Permalink
Browse files

#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.
  • Loading branch information...
sruffell authored and lauft committed Jan 6, 2019
1 parent 465d3bd commit 01d1142480dc67114f59fd445891245766e0c440
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 &&

0 comments on commit 01d1142

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.