]> 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>
Sun, 26 Jul 2020 10:38:57 +0000 (12:38 +0200)
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

vala/valagirparser.vala

index 18d2d7a0beb49c8fd29ac8be206b7fe8943ecbd9..dd2039d5f41dc1a798e0f3c2356664fca844c29a 100644 (file)
@@ -2231,6 +2231,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));