-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Describe the bug
Parser breaks on declares by ordinal:
Private Declare PtrSafe Function IUnknown_GetWindow Lib "shlwapi" Alias "#172" (ByVal pIUnk As IUnknown, ByVal hwnd As LongPtr) As LongShould be a simple fix, currently antlr grammar is as follows:
aliasClause: ALIAS wsc STRINGLITERAL;Needs changing to
aliasClause: ALIAS wsc stringOrOrdinal;
stringOrOrdinal
: STRINGLITERAL
| ORDINALSTRING
;
ORDINALSTRING
: '"#' [0-9]+ '"'
;I can likely PR, but just not sure how to build/test... Any instructions? 😅
Metadata
Metadata
Assignees
Labels
No labels