From 59fd1b894a9f51a4740cdd3660e9cf6528a34eed Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Jul 2020 15:25:48 +0200 Subject: [PATCH] Allow dots in assembly identifiers. --- docs/Solidity.g4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/Solidity.g4 b/docs/Solidity.g4 index af351731b..d4e86c523 100644 --- a/docs/Solidity.g4 +++ b/docs/Solidity.g4 @@ -306,7 +306,7 @@ assemblyBlock : '{' assemblyItem* '}' ; assemblyExpression - : assemblyCall | assemblyLiteral ; + : assemblyCall | assemblyLiteral | assemblyIdentifier ; assemblyCall : ( 'return' | 'address' | 'byte' | identifier ) ( '(' assemblyExpression? ( ',' assemblyExpression )* ')' )? ; @@ -318,7 +318,10 @@ assemblyAssignment : assemblyIdentifierList ':=' assemblyExpression ; assemblyIdentifierList - : identifier ( ',' identifier )* ; + : assemblyIdentifier ( ',' assemblyIdentifier )* ; + +assemblyIdentifier + : identifier ( '.' identifier )* ; assemblyStackAssignment : '=:' identifier ;