Fixed issue #21
This commit is contained in:
parent
8122132e26
commit
036d80f789
2
parser.d
2
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,6 +550,7 @@ body
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isIdentifierOrType(tokens[index]))
|
||||||
e.name = tokens[index++].value;
|
e.name = tokens[index++].value;
|
||||||
|
|
||||||
if (tokens[index] == TokenType.Colon)
|
if (tokens[index] == TokenType.Colon)
|
||||||
|
|
Loading…
Reference in New Issue