]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Do not error-out on doc:format
authorCorentin Noël <tintou@noel.tf>
Fri, 2 May 2025 21:42:30 +0000 (23:42 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 11 May 2025 20:15:33 +0000 (20:15 +0000)
This is part of the valid .gir file format, just skip it for now.

libvaladoc/importer/girdocumentationimporter.vala

index 057ab499b62dca8300107e3c3ccd39675506fc20..7a3f1574c8c18bd1b7222126509d29b1520d75cb 100644 (file)
@@ -217,6 +217,8 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
                                parse_package ();
                        } else if (reader.name == "c:include") {
                                parse_c_include ();
+                       } else if (reader.name == "doc:format") {
+                               parse_doc_format ();
                        } else {
                                // error
                                error ("unknown child element `%s' in `repository'".printf (reader.name));
@@ -247,6 +249,13 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
                end_element ("c:include");
        }
 
+       private void parse_doc_format () {
+               start_element ("doc:format");
+               next ();
+
+               end_element ("doc:format");
+       }
+
        private void skip_element () {
                next ();