summaryrefslogtreecommitdiffstats
path: root/scripts/whitespace.pl
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-05 10:24:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-05 10:24:04 -0700
commit6917d021fb9955101d428c97a03818e1da2e1e9e (patch)
treeb2d55b7445dc97a581d2ece59891ed7ffe628bf8 /scripts/whitespace.pl
parentf9c32a58835d73ad6ed259e26a79bd73c81d8030 (diff)
downloadsubsurface-6917d021fb9955101d428c97a03818e1da2e1e9e.tar.gz
Fix perl warning in whitespce.pl
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/whitespace.pl')
-rwxr-xr-xscripts/whitespace.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/whitespace.pl b/scripts/whitespace.pl
index 3131d22d4..6cd808123 100755
--- a/scripts/whitespace.pl
+++ b/scripts/whitespace.pl
@@ -16,7 +16,7 @@ $source =~ s/^(\s*union[^()\n]*)\n\s*{\s*$/$1 {/img;
$source =~ s/^(\s*static\s+union[^()\n]*)\n\s*{\s*$/$1 {/img;
$source =~ s/^(\s*class.*)\n\s*{\s*$/$1 {/img;
# a namespace shouldn't look like a function
-$source =~ s/(?:\G|^)(namespace.*)\n{/$1 {/img;
+$source =~ s/(?:\G|^)(namespace.*)\n\{/$1 {/img;
# colon goes at the end of a line
$source =~ s/^(\S*::\S*.*)\n\s*: /$1 : /img;
# odd indentations from clang-format: