From 6c8f78fb8ff99c5d28669fa7383a25b8c8523915 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 30 Apr 2018 13:30:09 +0200 Subject: Update documentation for multi variable declaration statement. --- docs/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/grammar.txt') diff --git a/docs/grammar.txt b/docs/grammar.txt index 565db9a4..0dda4f49 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -78,7 +78,7 @@ Break = 'break' Return = 'return' Expression? Throw = 'throw' EmitStatement = 'emit' FunctionCall -VariableDefinition = ('var' IdentifierList | VariableDeclaration) ( '=' Expression )? +VariableDefinition = ('var' IdentifierList | VariableDeclaration | '(' VariableDeclaration? (',' VariableDeclaration? )* ')' ) ( '=' Expression )? IdentifierList = '(' ( Identifier? ',' )* Identifier? ')' // Precedence by order (see github.com/ethereum/solidity/pull/732) -- cgit