[gtk-doc] gtkdoc-mkdb: Don't complain about annotations with other chars



commit f534508cfbcc320b6555e8e8e0c35dcd177b17a1
Author: Stef Walter <stefw redhat com>
Date:   Fri Oct 18 23:00:08 2013 +0200

    gtkdoc-mkdb: Don't complain about annotations with other chars
    
    Certain annotations like 'allow-none' have hyphens in them.
    Others like 'rename_to symbol_name_1' have numbers and underscores
    Fix gtkdoc-mkdb complaints about such annotations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710478

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index faffaf4..fed2f72 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3924,7 +3924,7 @@ sub ScanSourceFile {
                 $symbol = $1;
                 #print "SECTION DOCS found in source for : '$symbol'\n";
                 $ignore_broken_returns = 1;
-            } elsif (m%^\s*([\w:-]*\w)\s*:?\s*(\([a-z ]+\)\s*)*$%) {
+            } elsif (m%^\s*([\w:-]*\w)\s*:?\s*(\([-a-z0-9_ ]+\)\s*)*$%) {
                 $symbol = $1;
                 #print "SYMBOL DOCS found in source for : '$symbol'\n";
             }


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