2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: fix infinite loop on invalid syntax,
fixes bug 528017
svn path=/trunk/; revision=1225
2008-04-14 Jürg Billeter <j@bitron.ch>
+ * vala/valaparser.vala: fix infinite loop on invalid syntax,
+ fixes bug 528017
+
+2008-04-14 Jürg Billeter <j@bitron.ch>
+
* vala/valaparser.vala: report warning when using weak type
modifier in cast expressions, fixes bug 527990
}
} catch (ParseError e) {
int r;
- do {
+ while (true) {
r = recover ();
- } while (r == RecoveryState.STATEMENT_BEGIN);
+ if (r == RecoveryState.STATEMENT_BEGIN) {
+ next ();
+ } else {
+ break;
+ }
+ }
if (r == RecoveryState.EOF) {
return;
}