Closed DecimalTurn closed 1 year ago
In the VBA syntax, while all the builtin types only contain letters, user defined types can contain underscores and numbers. Eg.:
Public Type REMOTE_MEMORY2 '... End Type
is a valid name for a user defined type.
Hence, types should be allowed to contain these characters and be highlighted properly:
Public Sub InitRemoteMemory(ByRef rm As REMOTE_MEMORY2) '... End Sub
Example in the wild: https://github.com/cristianbuse/VBA-MemoryTools/blob/922a64c48e7e6c276c7be64605216173cc8bf7d9/src/LibMemory.bas#L642
For the tests, I'm not sure if the one with String_Extension2 is needed. Also note that I've changed Sub eggs... to Function eggs... because it has a return type.
String_Extension2
Sub eggs...
Function eggs...
In the VBA syntax, while all the builtin types only contain letters, user defined types can contain underscores and numbers. Eg.:
is a valid name for a user defined type.
Hence, types should be allowed to contain these characters and be highlighted properly:
Example in the wild: https://github.com/cristianbuse/VBA-MemoryTools/blob/922a64c48e7e6c276c7be64605216173cc8bf7d9/src/LibMemory.bas#L642
For the tests, I'm not sure if the one with
String_Extension2
is needed. Also note that I've changedSub eggs...
toFunction eggs...
because it has a return type.