[valadoc] gtk-importer: Allow "struct [id]*] inside docbook type tags



commit c3a15cce343f994c2d5d9fccca4d8e3b226422c5
Author: Florian Brosch <flo brosch gmail com>
Date:   Tue Jan 31 23:51:57 2012 +0100

    gtk-importer: Allow "struct [id]*] inside docbook type tags

 .../documentation/gtkdoccommentparser.vala         |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/documentation/gtkdoccommentparser.vala b/src/libvaladoc/documentation/gtkdoccommentparser.vala
index e044bd4..dfea4b1 100644
--- a/src/libvaladoc/documentation/gtkdoccommentparser.vala
+++ b/src/libvaladoc/documentation/gtkdoccommentparser.vala
@@ -455,6 +455,15 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator {
 
 		InlineTaglet? taglet = null;
 
+		if (current.type == TokenType.WORD && current.content == "struct") {
+			next ();
+
+			if (next ().type == TokenType.SPACE) {
+				next ();
+			}
+		}
+
+
 		if (current.type == TokenType.GTKDOC_FUNCTION || current.type == TokenType.GTKDOC_CONST || current.type == TokenType.GTKDOC_TYPE || current.type == TokenType.WORD || current.type == TokenType.GTKDOC_PROPERTY || current.type == TokenType.GTKDOC_SIGNAL) {
 			taglet = this.create_type_link (current.content) as InlineTaglet;
 			assert (taglet != null);



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