From b17a9f857808487160c2cd76ec627ce2cbaf5538 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Thu, 24 May 2018 18:02:59 +0200 Subject: [PATCH] * tests/sanity/style.test: Allow {{x}} in constructors. --- tests/sanity/style.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &&