vala r1256 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1256 - in trunk: . vala
- Date: Fri, 18 Apr 2008 22:40:37 +0100 (BST)
Author: juergbi
Date: Fri Apr 18 21:40:37 2008
New Revision: 1256
URL: http://svn.gnome.org/viewvc/vala?rev=1256&view=rev
Log:
2008-04-18 Juerg Billeter <j bitron ch>
* vala/valaparser.vala: don't report secondary syntax errors,
fixes bug 511896
Modified:
trunk/ChangeLog
trunk/vala/valaparser.vala
Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala (original)
+++ trunk/vala/valaparser.vala Fri Apr 18 21:40:37 2008
@@ -1283,7 +1283,10 @@
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;
@@ -1724,7 +1727,10 @@
}
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 `}'");
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]