current commit
200218.1 · ugrep 1.7.10 - updated tests & improved AVX/SSE2/ARM-NEON compilation
^\h*\{?\h*([\w:*&<,>]+\h+)+\w+\h*\([^)\n]*\)\h*((const|final|noexcept|override|throw\h*\([^)\n]*\))\h*)*([:{].*|[^{;\w\n]*)$
(?^^.*\h+(catch|else|for|if|return|switch|throw|while).*$)