From: Rico Tzschichholz Date: Sun, 11 Jun 2017 10:49:40 +0000 (+0200) Subject: gir-importer: Ignore tags X-Git-Tag: 0.37.1~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4f3f73a01b86fe7f9edde7a3991b493346eea23;p=thirdparty%2Fvala.git gir-importer: Ignore tags --- diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala b/src/libvaladoc/importer/girdocumentationimporter.vala index 9984dd59b..3228dbec1 100644 --- a/src/libvaladoc/importer/girdocumentationimporter.vala +++ b/src/libvaladoc/importer/girdocumentationimporter.vala @@ -177,9 +177,10 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter { private void next () { current_token = reader.read_token (out begin, out end); - // Skip (only generated by valac) - if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "annotation") { - next (); // MarkupTokenType.END_ELEMENT, annotation + // Skip (only generated by valac) and + if (current_token == MarkupTokenType.START_ELEMENT + && (reader.name == "annotation" || reader.name == "attribute")) { + next (); // MarkupTokenType.END_ELEMENT, annotation / attribute next (); } }