accept trailing comma with enum and enumflags

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3786 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2011-05-03 22:37:56 +00:00
parent 132ef961bc
commit 2091c2f83e

View file

@ -8386,6 +8386,8 @@ void QCC_PR_ParseDefs (char *classname)
if (QCC_PR_CheckToken("}")) if (QCC_PR_CheckToken("}"))
break; break;
QCC_PR_Expect(","); QCC_PR_Expect(",");
if (QCC_PR_CheckToken("}"))
break; // accept trailing comma
} }
} }
else else
@ -8426,6 +8428,8 @@ void QCC_PR_ParseDefs (char *classname)
if (QCC_PR_CheckToken("}")) if (QCC_PR_CheckToken("}"))
break; break;
QCC_PR_Expect(","); QCC_PR_Expect(",");
if (QCC_PR_CheckToken("}"))
break; // accept trailing comma
} }
} }
QCC_PR_Expect(";"); QCC_PR_Expect(";");