[gtk-doc] Expand annotation recognition on symbol lines
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Expand annotation recognition on symbol lines
- Date: Fri, 13 Mar 2015 10:02:36 +0000 (UTC)
commit 545a70ce4bc0c83748a8f580dd8e12b3ca631209
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.
https://bugzilla.gnome.org/show_bug.cgi?id=746120
https://bugzilla.gnome.org/show_bug.cgi?id=746121
gtkdoc-mkdb.in | 2 +-
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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]