[gtk-doc/wip/desrt/fixes-for-glib: 2/2] Expand annotation recognition on symbol lines
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/wip/desrt/fixes-for-glib: 2/2] Expand annotation recognition on symbol lines
- Date: Thu, 12 Mar 2015 21:12:32 +0000 (UTC)
commit 108f799ee4c9e353f74ef5d0eba09e81ea570c24
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]