Skip to content

Commit 30b40b2

Browse files
committed
Fix lineSpecialForm's Line Continuation Behavior
1 parent 66a77ec commit 30b40b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rubberduck.Parsing/Grammar/VBAParser.g4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,10 @@ withStmt :
571571
;
572572

573573
// Special forms with special syntax, only available in VBA reports or VB6 forms and pictureboxes.
574-
lineSpecialForm : expression whiteSpace ((STEP whiteSpace?)? tuple)? MINUS (STEP whiteSpace?)? tuple whiteSpace? (COMMA whiteSpace? expression)? whiteSpace? (COMMA whiteSpace? lineSpecialFormOption)?;
574+
lineSpecialForm : expression whiteSpace ((STEP whiteSpace?)? tuple whiteSpace?)?
575+
MINUS (STEP whiteSpace?)? tuple whiteSpace?
576+
(COMMA whiteSpace? expression)? whiteSpace?
577+
(COMMA whiteSpace? lineSpecialFormOption)?;
575578
circleSpecialForm : (expression whiteSpace? DOT whiteSpace?)? CIRCLE whiteSpace (STEP whiteSpace?)? tuple (whiteSpace? COMMA whiteSpace? expression)+;
576579
scaleSpecialForm : (expression whiteSpace? DOT whiteSpace?)? SCALE whiteSpace tuple whiteSpace? MINUS whiteSpace? tuple;
577580
pSetSpecialForm : (expression whiteSpace? DOT whiteSpace?)? PSET (whiteSpace STEP)? whiteSpace? tuple whiteSpace? (COMMA whiteSpace? expression)?;

0 commit comments

Comments
 (0)