From d0641c621090244eaa8a329c4ecd4be2ce493905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 14 Sep 2006 10:02:26 +0000 Subject: [PATCH] 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 --- src/tools/docbook/headersampler/HeaderSampler.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tools/docbook/headersampler/HeaderSampler.pl b/src/tools/docbook/headersampler/HeaderSampler.pl index e87fae97f4..c0c530bc67 100644 --- a/src/tools/docbook/headersampler/HeaderSampler.pl +++ b/src/tools/docbook/headersampler/HeaderSampler.pl @@ -78,7 +78,7 @@ sub HandleTextline { SWITCH: { # skip 'typedef' or 'struct' region. - (/^typedef/ || /^struct/) && do { + (/^typedef/ || /^struct/ || /^namespace/) && do { $gIsIgnoring = 1; last SWITCH; }; @@ -105,6 +105,14 @@ sub HandleTextline { 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. ($gIsIgnoring) && do { last SWITCH;