Use % instead of [[ for finding the opening brace.

[[ will only match opening braces that are located in the first column
which makes af and if work incorrectly with other brace positioning
styles. This commit switches to % instead which will always find the
matching brace.