Skip to content

Commit edd43ce

Browse files
committed
Merge pull request #1091 from autoboosh/onerrorfix
fix OnErrorStmtContext not including GoTo/Resume statement
2 parents 516d9d0 + 8077008 commit edd43ce

File tree

2 files changed

+1985
-1994
lines changed

2 files changed

+1985
-1994
lines changed

Rubberduck.Parsing/Grammar/VBA.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ mkdirStmt : MKDIR WS valueStmt;
385385

386386
nameStmt : NAME WS valueStmt WS AS WS valueStmt;
387387

388-
onErrorStmt : ON_ERROR | ON_LOCAL_ERROR WS (GOTO WS valueStmt | RESUME WS NEXT);
388+
onErrorStmt : (ON_ERROR | ON_LOCAL_ERROR) WS (GOTO WS valueStmt | RESUME WS NEXT);
389389

390390
onGoToStmt : ON WS valueStmt WS GOTO WS valueStmt (WS? ',' WS? valueStmt)*;
391391

0 commit comments

Comments
 (0)