Skip to content

[Bug] Enum name throws when LongPtr #9

@SSlinky

Description

@SSlinky

Describe the bug
Enums require an name that isn't a reserved word or type. What counts as a reserved word or type depends on the version.

To Reproduce
Steps to reproduce the behavior:

#If VBA7 = 0 then
  Enum LongPtr
    [_]
  End Enum
#End if

Code (if relevant)

enumDeclaration: ENUM wsc untypedName endOfStatement+ enumMemberList endOfStatement+ END wsc ENUM ;

Expected behavior
LongPtr should be a valid enum name. The parser shouldn't care it's a reserved word or type.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions