Closed gustason closed 1 month ago
When I made the enum shorter, I see that end dot is parsed as a enum_definition.
From your description it looks like the information given by parser is just trimmed. Please check this again. If the issue is still there, we will submit the ticket
Another example:
ENUM Weather:
define ENUM Rainy
Default = Sunny
Cloudy
Snowy
Apocalyptic.
END ENUM.
It is true that enum_definition
contains a dot (define ENUM Rainy Default = Sunny Cloudy Snowy Apocalyptic.
).
Nonetheless, if we parse all the children of enum_definition
, this is what we get:
childType: DEFINE
childText: define
childType: ENUM
childText: ENUM
childType: enum_member
childText: Rainy
childType: enum_member
childText: Default = Sunny
childType: enum_member
childText: Cloudy
childType: enum_member
childText: Snowy
childType: enum_member
childText: Apocalyptic
The dot does not get parsed as part of the children, therefore we are left with this:
ENUM Weather:
define ENUM Rainy
Default = Sunny
Cloudy
Snowy
Apocalyptic
END ENUM.
I suppose it is fine since the dot is always at the end so it can be easily added manually.
For example,
The
enum_statement
gets parsed asENUM LiteraryMood FLAGS: define ENUM None = 0 Joyful Melancholy Heroic Whimsical Epic JoyfulMelancholy
Likewise, theenum_definition
gets parsed asdefine ENUM None = 0 Joyful Melancholy Heroic Whimsical Epic JoyfulMelancholy = Joyful,Melancholy
The.
does not get parsed at all.