Commit 8707ae6f authored by Max Kellermann's avatar Max Kellermann

Songfilter: allow redundant parantheses

parent 8786b616
......@@ -320,8 +320,15 @@ SongFilter::ParseExpression(const char *&s, bool fold_case)
s = StripLeft(s + 1);
if (*s == '(')
if (*s == '(') {
auto first = ParseExpression(s, fold_case);
if (*s == ')') {
++s;
return first;
}
throw std::runtime_error("Nested expressions not yet implemented");
}
auto type = ExpectFilterType(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment