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:
parent
132ef961bc
commit
2091c2f83e
1 changed files with 4 additions and 0 deletions
|
@ -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(";");
|
||||||
|
|
Loading…
Reference in a new issue