]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Skip 'docsection' elements in <namespace>
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 23 Jul 2020 06:24:15 +0000 (08:24 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 23 Jul 2020 06:26:15 +0000 (08:26 +0200)
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

vala/valagirparser.vala

index 8526ffa1b0c545c8c3fb32b28680f3e8776b6baa..dd58dc2847c1e3e115c7d8bc4f69f242de874b5f 100644 (file)
@@ -2244,6 +2244,8 @@ public class Vala.GirParser : CodeVisitor {
                                }
                        } else if (reader.name == "constant") {
                                parse_constant ();
+                       } else if (reader.name == "docsection") {
+                               skip_element ();
                        } else {
                                // error
                                Report.error (get_current_src (), "unknown child element `%s' in `namespace'".printf (reader.name));