vala r2304 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2304 - in trunk: . vala
- Date: Fri, 9 Jan 2009 16:14:00 +0000 (UTC)
Author: juergbi
Date: Fri Jan 9 16:13:59 2009
New Revision: 2304
URL: http://svn.gnome.org/viewvc/vala?rev=2304&view=rev
Log:
2009-01-09 JÃrg Billeter <j bitron ch>
* vala/valaparser.vala:
Do not allow empty enums and errordomains, fixes bug 543564
Modified:
trunk/ChangeLog
trunk/vala/valaparser.vala
Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala (original)
+++ trunk/vala/valaparser.vala Fri Jan 9 16:13:59 2009
@@ -2477,7 +2477,8 @@
expect (TokenType.OPEN_BRACE);
do {
- if (current () == TokenType.CLOSE_BRACE) {
+ if (current () == TokenType.CLOSE_BRACE
+ && en.get_values ().size > 0) {
// allow trailing comma
break;
}
@@ -2534,7 +2535,8 @@
expect (TokenType.OPEN_BRACE);
do {
- if (current () == TokenType.CLOSE_BRACE) {
+ if (current () == TokenType.CLOSE_BRACE
+ && ed.get_codes ().size > 0) {
// allow trailing comma
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]