* tests/sanity/style.test: Allow {{x}} in constructors.
This commit is contained in:
parent
c87c13db67
commit
b17a9f8578
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
||||||
# with parentheses, as this often occur with lambdas or
|
# with parentheses, as this often occur with lambdas or
|
||||||
# initializer lists. What we want to forbid is cases where
|
# initializer lists. What we want to forbid is cases where
|
||||||
# multiple scopes are opened/closed on the same line.
|
# multiple scopes are opened/closed on the same line.
|
||||||
$GREP '^[^()]*}[^()]*}[^()]*$' $tmp &&
|
$GREP '^[^():]*}[^()]*}[^()]*$' $tmp &&
|
||||||
diag 'No two } on the same line.'
|
diag 'No two } on the same line.'
|
||||||
|
|
||||||
$GREP '^[^()]{[^()]*{[^()]$' $tmp &&
|
$GREP '^[^()]{[^()]*{[^()]$' $tmp &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue