From 65ad24e665880b1a417763e4c852c62d39e79a65 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Fri, 5 Sep 2008 20:33:30 +0200 Subject: [PATCH] Documentation: keep ; at the end of functions And replace { at the end of inline functions with ; --- build/extract-doc.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/extract-doc.pl b/build/extract-doc.pl index 7eb28354..b4ea259c 100755 --- a/build/extract-doc.pl +++ b/build/extract-doc.pl @@ -81,7 +81,8 @@ sub process( $ ) { s/^\s*\s?//; s/\/\/.*//; s/\/\*.*?\*\///gs; - s/[;{].*//; + s/([;{]).*/";"x length( $1 )/e; + s/\)\s*;$/);/; formatNote( $_, $buff ); $head = undef; $buff = undef; @@ -99,7 +100,8 @@ sub process( $ ) { if( $head =~ /\(/ || $head !~ /{/ ) { $head =~ s/^\s*//; $head =~ s/\/\*.*?\*\///gs; - $head =~ s/[;{].*//; + $head =~ s/([;{]).*/";"x length( $1 )/e; + $head =~ s/\)\s*;$/);/; formatNote( $head, $buff ); $head = undef; $buff = undef; -- 2.39.2