"vscode:/vscode.git/clone" did not exist on "a7b7c0b569778720ca147a0f7d833778c161af38"
Commit b8a7d3bb authored by Paul's avatar Paul
Browse files

Formatting

parent ad2ac47c
...@@ -254,8 +254,9 @@ template <class... Ts> ...@@ -254,8 +254,9 @@ template <class... Ts>
auto any_of(Ts... ms) auto any_of(Ts... ms)
{ {
return make_bf_matcher([=](matcher_context& ctx, instruction_ref ins) { return make_bf_matcher([=](matcher_context& ctx, instruction_ref ins) {
bool matches = fold( bool matches = fold([&](auto x, auto y) {
[&](auto x, auto y) { return x or y.match(ctx, ins) != ctx.not_found(); })(false, ms...); return x or y.match(ctx, ins) != ctx.not_found();
})(false, ms...);
if(matches) if(matches)
return ins; return ins;
return ctx.not_found(); return ctx.not_found();
......
...@@ -411,7 +411,7 @@ int main() ...@@ -411,7 +411,7 @@ int main()
match_none_of1(); match_none_of1();
match_none_of2(); match_none_of2();
match_bind1(); match_bind1();
match_finder(); match_finder();
......
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