Songfilter: allow redundant parantheses
This commit is contained in:
parent
8786b61636
commit
8707ae6fd4
@ -320,8 +320,15 @@ SongFilter::ParseExpression(const char *&s, bool fold_case)
|
|||||||
|
|
||||||
s = StripLeft(s + 1);
|
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");
|
throw std::runtime_error("Nested expressions not yet implemented");
|
||||||
|
}
|
||||||
|
|
||||||
auto type = ExpectFilterType(s);
|
auto type = ExpectFilterType(s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user