Fixed issue #21
This commit is contained in:
parent
8122132e26
commit
036d80f789
4
parser.d
4
parser.d
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue