add kludge for handling { and } on the same line
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10174 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -31,6 +31,9 @@ while(<>) {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if(/\{/){
|
if(/\{/){
|
||||||
|
if (!/\}/) {
|
||||||
|
$brace++;
|
||||||
|
}
|
||||||
$_ = $line;
|
$_ = $line;
|
||||||
while(s/\*\//\ca/){
|
while(s/\*\//\ca/){
|
||||||
s/\/\*(.|\n)*\ca//;
|
s/\/\*(.|\n)*\ca//;
|
||||||
@@ -77,7 +80,6 @@ while(<>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$line = "";
|
$line = "";
|
||||||
$brace++;
|
|
||||||
}
|
}
|
||||||
if(/\}/){
|
if(/\}/){
|
||||||
$brace--;
|
$brace--;
|
||||||
|
Reference in New Issue
Block a user