]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: warn instead of error on unrecognized metadata arguments
authorEvan Nemerson <evan@coeus-group.com>
Sat, 16 Feb 2013 22:49:45 +0000 (14:49 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Sat, 16 Feb 2013 22:49:45 +0000 (14:49 -0800)
vala/valagirparser.vala

index 92284d9ffa558741bd985639b995f39d106e1f42..2773397981a85f5d137004f58e97dacf955b161a 100644 (file)
@@ -444,8 +444,8 @@ public class Vala.GirParser : CodeVisitor {
                                }
                                var arg_type = ArgumentType.from_string (id);
                                if (arg_type == null) {
-                                       Report.error (get_src (begin, old_end), "unknown argument");
-                                       return false;
+                                       Report.warning (get_src (begin, old_end), "unknown argument `%s'".printf (id));
+                                       continue;
                                }
 
                                if (current != TokenType.ASSIGN) {