2008-04-18 Jürg Billeter <j@bitron.ch>
+ * vala/valaparser.vala: don't report secondary syntax errors,
+ fixes bug 511896
+
+2008-04-18 Jürg Billeter <j@bitron.ch>
+
* vala/valaclass.vala, gobject/valaccodegeneratorclass.vala: make
sure that ref_function and unref_function of classes deriving
from GTypeInstance are always initialized
var block = context.create_block (get_src_com (begin));
parse_statements (block);
if (!accept (TokenType.CLOSE_BRACE)) {
- Report.error (get_current_src (), "expected `}'");
+ // only report error if it's not a secondary error
+ if (Report.get_errors () == 0) {
+ Report.error (get_current_src (), "expected `}'");
+ }
}
return block;
}
if (!root) {
if (!accept (TokenType.CLOSE_BRACE)) {
- Report.error (get_current_src (), "expected `}'");
+ // only report error if it's not a secondary error
+ if (Report.get_errors () == 0) {
+ Report.error (get_current_src (), "expected `}'");
+ }
}
}
}