[gtk-doc] gtkdoc-mkdb: accept every char in an annotation



commit bc5d2bce65cbda332d45625c9f8ec147522f78a7
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Nov 10 21:16:45 2016 +0100

    gtkdoc-mkdb: accept every char in an annotation
    
    It is unlikely that this format ever gets a formal specification. Hopefully
    has no sideeffects.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=774168

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 5cce362..d589ca5 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4331,7 +4331,7 @@ sub ScanSourceFile {
             } elsif (m%^\s*(PROGRAM:\s*\S+)%) {
                 $symbol = $1;
                 @TRACE@("PROGRAM DOCS found in source for : '$symbol'\n");
-            } elsif (m%^\s*([\w:-]*\w)\s*:?\s*(\([-A-Za-z0-9._()= ]+?\)\s*)*$%) {
+            } elsif (m%^\s*([\w:-]*\w)\s*:?\s*(\(.+?\)\s*)*$%) {
                 $symbol = $1;
                 my $annotation = $2;
                 @TRACE@("SYMBOL DOCS found in source for : '$symbol'\n");


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