https://bugs.winehq.org/show_bug.cgi?id=46318
Bug ID: 46318 Summary: vbscript doesn't parse if identifier is also keyword token Product: Wine Version: 4.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: brendan@redmandi.com Distribution: ---
Created attachment 63051 --> https://bugs.winehq.org/attachment.cgi?id=63051 Treat all tokens after immediately following a '.' as identifier
The following vbscript currently fails with a parsing error:
Set oLocator = CreateObject("Wbemscripting.SWbemLocator") Set oReg = oLocator.ConnectServer("", "root\default", "", "").Get("StdRegProv")
The issue appears to be using a method named 'Get' which is also one of the tokens used in the parse.
I was able to fix this by modifying the parse to treat any value immediately after a '.' as an identifier. Although I'm not familiar enough with vbscript syntax to know if this will cause any other issues.
The patch used is attached.