summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2015-03-12 17:09:02 -0400
committerStefan Sauer <ensonic@users.sf.net>2015-03-13 11:02:13 +0100
commit545a70ce4bc0c83748a8f580dd8e12b3ca631209 (patch)
treecf8fc320e25db651002d91297ac6dc91f2fd5841
parent25d07c22a597f9da45a32dfb6d139b0a56631895 (diff)
downloadgtk-doc-545a70ce4bc0c83748a8f580dd8e12b3ca631209.tar.gz
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. https://bugzilla.gnome.org/show_bug.cgi?id=746120 https://bugzilla.gnome.org/show_bug.cgi?id=746121
-rwxr-xr-xgtkdoc-mkdb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 9543a3c..0f1139e 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4055,7 +4055,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");
}