rubberduck-vba / RubberduckWeb

Project Website for the Rubberduck VBA Editor Add-In
19 stars 12 forks source link

Parser Error reported on certain For Next loop structure #55

Closed chrisneilsen closed 5 years ago

chrisneilsen commented 6 years ago

Write a nested For Next in the form

For x = a To b
For y = c To d
    ' ...
Next y, x

throws a Parser Error on the Next y, x

extraneous input ',' expecting {, ':', REM, NEWLINE, ''', WS, LINE_CONTINUATION}

retailcoder commented 6 years ago

Thanks for reporting this, I never knew this was legal! Mind opening this issue on the main Rubberduck repository though?