]> 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 08:55:40 +0000 (10:55 +0200)
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

vala/valagirparser.vala

index 436c8abb187a57bde748dd23c90b1e3fef1101ae..f89d44854753afeb86853715233f41b9a1c53261 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));