Browse Source

Make Expressions in ArgumentList optional, make Statements in single-line-If optional

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@5974 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
8048697694
  1. 7
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg

7
src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg

@ -372,7 +372,7 @@ StatementTerminatorAndBlock = @@ -372,7 +372,7 @@ StatementTerminatorAndBlock =
Expression =
(. nextTokenIsPotentialStartOfXmlMode = true; .)
(
SimpleExpressionWithSuffix { BinaryOperator SimpleExpressionWithSuffix }
SimpleExpressionWithSuffix { BinaryOperator SimpleExpressionWithSuffix }
| ConditionalExpression
)
.
@ -542,7 +542,7 @@ RaiseEventStatement = @@ -542,7 +542,7 @@ RaiseEventStatement =
IfStatement =
"If" Expression
( "Then"
( Statement { ":" Statement } [ "Else" Statement { ":" Statement } ] EOL
( Statement { ":" [Statement] } [ "Else" [Statement] { ":" [Statement] } ] EOL
| MultilineIfRemainder
)
| MultilineIfRemainder
@ -621,7 +621,8 @@ InvocationStatement = @@ -621,7 +621,8 @@ InvocationStatement =
.
ArgumentList =
Expression { "," Expression }
Expression { "," [ Expression ] }
| "," [ Expression ] { "," [ Expression ] }
.
/* This production handles pseudo keywords that are needed in the grammar */

Loading…
Cancel
Save