Songfilter: allow redundant parantheses

This commit is contained in:
Max Kellermann 2018-07-30 10:00:38 +02:00
parent 8786b61636
commit 8707ae6fd4

View File

@ -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);