]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gir-importer: Ignore <annotation> tags
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 27 Aug 2013 12:40:44 +0000 (14:40 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 27 Aug 2013 12:46:15 +0000 (14:46 +0200)
src/libvaladoc/importer/girdocumentationimporter.vala

index 02f9e85ab98c2adbec635f614197c3943249aea0..1988b967c19c8415c84f833668de2637d7e2fae9 100644 (file)
@@ -176,6 +176,12 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
 
        private void next () {
                current_token = reader.read_token (out begin, out end);
+
+               // Skip <annotation /> (only generated by valac)
+               if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "annotation") {
+                       next (); // MarkupTokenType.END_ELEMENT, annotation
+                       next ();
+               }
        }
 
        private void start_element (string name) {