diff --git a/tests/sanity/style.test b/tests/sanity/style.test index a3bac86cf..1b5762ccd 100755 --- a/tests/sanity/style.test +++ b/tests/sanity/style.test @@ -245,7 +245,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do # with parentheses, as this often occur with lambdas or # initializer lists. What we want to forbid is cases where # multiple scopes are opened/closed on the same line. - $GREP '^[^()]*}[^()]*}[^()]*$' $tmp && + $GREP '^[^():]*}[^()]*}[^()]*$' $tmp && diag 'No two } on the same line.' $GREP '^[^()]{[^()]*{[^()]$' $tmp &&