C#: Correctly parse enums with a base type specifier
See CSharp Language Specification 14.1.
This commit is contained in:
parent
d91c532f95
commit
af5dfba9d8
@ -2637,7 +2637,8 @@ static void processColon (statementInfo *const st)
|
|||||||
else if (c == ';')
|
else if (c == ';')
|
||||||
setToken (st, TOKEN_SEMICOLON);
|
setToken (st, TOKEN_SEMICOLON);
|
||||||
}
|
}
|
||||||
else if (isLanguage (Lang_cpp) && st->declaration == DECL_ENUM)
|
else if ((isLanguage (Lang_cpp) || isLanguage (Lang_csharp)) &&
|
||||||
|
st->declaration == DECL_ENUM)
|
||||||
{
|
{
|
||||||
/* skip enum's base type */
|
/* skip enum's base type */
|
||||||
c = skipToOneOf ("{;");
|
c = skipToOneOf ("{;");
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# format=tagmanager
|
# format=tagmanager
|
||||||
CÌ1Ö0
|
CÌ1Ö0
|
||||||
|
Enum1Ì2Ö0
|
||||||
MyGenericClass1Ì1Ö0
|
MyGenericClass1Ì1Ö0
|
||||||
Value1Ì4ÎbyteÖ0
|
Value1Ì4ÎEnum1Ö0
|
||||||
ValuesÌ4ÎbyteÖ0
|
ValuesÌ4ÎEnum1Ö0
|
||||||
byteÌ2Ö0
|
|
||||||
int1Ì8ÎCÖ0Ïint
|
int1Ì8ÎCÖ0Ïint
|
||||||
str1Ì8ÎCÖ0
|
str1Ì8ÎCÖ0
|
||||||
str2Ì8ÎCÖ0
|
str2Ì8ÎCÖ0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user