diff options
Diffstat (limited to 'libvaladoc')
-rw-r--r-- | libvaladoc/documentation/gtkdoccommentparser.vala | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libvaladoc/documentation/gtkdoccommentparser.vala b/libvaladoc/documentation/gtkdoccommentparser.vala index c1b1d0ea8..a67ca3b20 100644 --- a/libvaladoc/documentation/gtkdoccommentparser.vala +++ b/libvaladoc/documentation/gtkdoccommentparser.vala @@ -235,15 +235,16 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator { var ic = parse_inline_content (); parse_docbook_spaces (false); - if (current.type != TokenType.EOF) { - this.report_unexpected_token (current, "<EOF>"); - return null; - } - BlockContent? taglet = factory.create_taglet (taglet_name) as BlockContent; assert (taglet != null); Paragraph paragraph = factory.create_paragraph (); - paragraph.content.add (ic); + + if (current.type == TokenType.EOF) { + paragraph.content.add (ic); + } else { + this.report_unexpected_token (current, "<EOF>"); + } + taglet.content.add (paragraph); return taglet as Taglet; } |