[gtk-doc/wip/desrt/fixes-for-glib: 5/5] Expand annotation recognition on symbol lines



commit 4f04e9ede50ce85826aded382fc53a4d0e9c9c7d
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Mar 12 17:09:02 2015 -0400

    Expand annotation recognition on symbol lines
    
    Expand support for this sort of annotation:
    
      /**
       * some_symbol: (annotations here)
       ...
    
    to also allow for capital letters and dots ('.') to appear within the
    annotations.  This is needed for annotations such as:
    
      /**
       * GTlsClientConnection:accepted-cas: (type GLib.List) (element-type GLib.ByteArray)
       ...
    
    as one real-world example.

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


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