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

Loading…
Cancel
Save