]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Skip 'attribute' elements
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 15 Jun 2019 15:43:28 +0000 (17:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 15 Jun 2019 15:45:53 +0000 (17:45 +0200)
vala/valagirparser.vala

index 30daab5babfcc834ba685dfc02f584d5775ec23f..fe4a060a83e98cd8d94745686a328bdd0e3ef853 100644 (file)
@@ -2281,6 +2281,8 @@ public class Vala.GirParser : CodeVisitor {
                                skip_element ();
                        } else if (reader_name == "source-position") {
                                skip_element ();
+                       } else if (reader_name == "attribute") {
+                               skip_element ();
                        } else {
                                break;
                        }
@@ -2310,6 +2312,8 @@ public class Vala.GirParser : CodeVisitor {
                                skip_element ();
                        } else if (reader_name == "source-position") {
                                skip_element ();
+                       } else if (reader_name == "attribute") {
+                               skip_element ();
                        } else {
                                break;
                        }