Open
Description
Standard naming rules don't apply to enum members (or enums themselves), this code is perfectly legal (but might be worthy of an inspection). At the very least, a leading underscore should be permitted in order to take advantage of the hidden enum member feature.
Enum Foo
Apple = 1
[_Min] = 1
[`~!@#$%^&*()-_+=[']\/?{}|<>,.;:"] = 3
End Enum
A more difficult issue relates to the name of an enum, as per #2568, where special characters are also allowed, but the VBE pretty printer fails to add/retain the necessary square brackets:
Enum [`~!@#$%^&*()-_+=[']\/?{}|<>,.;:"]
Apple = 1
[_Min] = 1
[`~!@#$%^&*()-_+=[']\/?{}|< spaces! >,.;:"] = 3
End Enum
'pretty print to become:
Enum `~!@#$%^&*()-_+=[']\/?{}|<>,.;:"
Apple = 1
[_Min] = 1
[`~!@#$%^&*()-_+=[']\/?{}|< spaces! >,.;:"] = 3
End Enum