Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WithStatement not supported correctly #13

Open
genius257 opened this issue May 5, 2022 · 0 comments
Open

WithStatement not supported correctly #13

genius257 opened this issue May 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@genius257
Copy link
Owner

genius257 commented May 5, 2022

Local $oExcel = ObjCreate("Excel.Application")
$oExcel.visible = 1
$oExcel.workbooks.add

With $oExcel.activesheet
        .cells(2, 2).value = 1
        .range("A1:B2").clear
EndWith

$oExcel.quit

result

Line 6, column 9: Expected " ", "\t", "_", or end of line but "." found.

To solve this, new alternate version of EVERY rule, supporting dot notation, without a leading variable must be implemented, like how the Javascript example file from peg/peggy has the NoIn variants to prevent the In keyword in certain contexts.

@genius257 genius257 added the bug Something isn't working label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant