take namespace into account (they don't end with a ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18831 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a18f94dc5b
commit
d0641c6210
@ -78,7 +78,7 @@ sub HandleTextline {
|
|||||||
SWITCH: {
|
SWITCH: {
|
||||||
|
|
||||||
# skip 'typedef' or 'struct' region.
|
# skip 'typedef' or 'struct' region.
|
||||||
(/^typedef/ || /^struct/) && do {
|
(/^typedef/ || /^struct/ || /^namespace/) && do {
|
||||||
$gIsIgnoring = 1;
|
$gIsIgnoring = 1;
|
||||||
last SWITCH;
|
last SWITCH;
|
||||||
};
|
};
|
||||||
@ -105,6 +105,14 @@ sub HandleTextline {
|
|||||||
last SWITCH;
|
last SWITCH;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# skip this line if it ends with "}???". for namespace
|
||||||
|
/\}$/ && do {
|
||||||
|
$gSentence = "";
|
||||||
|
@gComment = ();
|
||||||
|
$gIsIgnoring = 0;
|
||||||
|
last SWITCH;
|
||||||
|
};
|
||||||
|
|
||||||
# test if end of 'typedef' or 'struct' region.
|
# test if end of 'typedef' or 'struct' region.
|
||||||
($gIsIgnoring) && do {
|
($gIsIgnoring) && do {
|
||||||
last SWITCH;
|
last SWITCH;
|
||||||
|
Loading…
Reference in New Issue
Block a user