[gtk-doc] common: strip // comment properly before parsing



commit 7c8d70231ae2b7db619ebe85c8748ddd39a1067b
Author: Stefan Kost <ensonic users sf net>
Date:   Wed Apr 28 23:42:31 2010 +0300

    common: strip // comment properly before parsing

 gtkdoc-common.pl.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
index aa4ceca..9dad3ca 100644
--- a/gtkdoc-common.pl.in
+++ b/gtkdoc-common.pl.in
@@ -116,7 +116,7 @@ sub ParseStructDeclaration {
 
     # Remove all other comments;
     $declaration =~ s@/\*([^*]+|\*(?!/))*\*/@ @g;
-    $declaration =~ s@//.*$@@g;
+    $declaration =~ s@//.*@@g;
 
     my @result = ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]