Skip to content

Commit

Permalink
Merge pull request #4884 from Vogel612/fix/lineSpecialForm
Browse files Browse the repository at this point in the history
Fixes parser rule for Line special-form syntax.
  • Loading branch information
retailcoder committed Apr 2, 2019
2 parents 2925035 + 2c2512d commit c8c6203
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 260 deletions.
8 changes: 7 additions & 1 deletion Rubberduck.Parsing/Grammar/VBAParser.g4
Expand Up @@ -571,7 +571,13 @@ withStmt :
;

// Special forms with special syntax, only available in VBA reports or VB6 forms and pictureboxes.
lineSpecialForm : expression whiteSpace ((STEP whiteSpace?)? tuple)? MINUS (STEP whiteSpace?)? tuple whiteSpace? (COMMA whiteSpace? expression)? whiteSpace? (COMMA whiteSpace? lineSpecialFormOption)?;
// lineSpecialFormOption is required if expression is missing
lineSpecialForm : expression whiteSpace ((STEP whiteSpace?)? tuple)?
whiteSpace? MINUS whiteSpace?
(STEP whiteSpace?)? tuple whiteSpace?
(COMMA whiteSpace? expression? whiteSpace?)?
(COMMA whiteSpace? lineSpecialFormOption)?
;
circleSpecialForm : (expression whiteSpace? DOT whiteSpace?)? CIRCLE whiteSpace (STEP whiteSpace?)? tuple (whiteSpace? COMMA whiteSpace? expression)+;
scaleSpecialForm : (expression whiteSpace? DOT whiteSpace?)? SCALE whiteSpace tuple whiteSpace? MINUS whiteSpace? tuple;
pSetSpecialForm : (expression whiteSpace? DOT whiteSpace?)? PSET (whiteSpace STEP)? whiteSpace? tuple whiteSpace? (COMMA whiteSpace? expression)?;
Expand Down

0 comments on commit c8c6203

Please sign in to comment.