Fixed issue #21

This commit is contained in:
Hackerpilot 2012-11-29 11:38:33 -08:00
parent 8122132e26
commit 036d80f789
1 changed files with 3 additions and 1 deletions

View File

@ -518,6 +518,7 @@ body
e.line = tokens[index].lineNumber; e.line = tokens[index].lineNumber;
++index; ++index;
string enumType; string enumType;
e.protection = protection;
if (tokens[index] == TokenType.LBrace) if (tokens[index] == TokenType.LBrace)
goto enumBody; goto enumBody;
@ -549,7 +550,8 @@ body
} }
} }
e.name = tokens[index++].value; if (isIdentifierOrType(tokens[index]))
e.name = tokens[index++].value;
if (tokens[index] == TokenType.Colon) if (tokens[index] == TokenType.Colon)
{ {