]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk-importer: Allow "struct [id]*] inside docbook type tags
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 31 Jan 2012 22:51:57 +0000 (23:51 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 31 Jan 2012 22:51:57 +0000 (23:51 +0100)
src/libvaladoc/documentation/gtkdoccommentparser.vala

index e044bd4635235d0f8890b61104516360d87bbccc..dfea4b1a86403a9a71d939dce0b127b044d33b68 100644 (file)
@@ -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);