mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce RightArrow (->) token in the scanner
This commit is contained in:
@@ -112,6 +112,7 @@ Semicolon: ';';
|
||||
Period: '.';
|
||||
Conditional: '?';
|
||||
Arrow: '=>';
|
||||
RightArrow: '->';
|
||||
|
||||
Assign: '=';
|
||||
AssignBitOr: '|=';
|
||||
@@ -283,9 +284,7 @@ YulRParen: ')';
|
||||
YulAssign: ':=';
|
||||
YulPeriod: '.';
|
||||
YulComma: ',';
|
||||
// TODO: remove whitespace workaround once the parser disallows it.
|
||||
//@doc:name ->
|
||||
YulArrow: '->' | '-' YulWS+ '>';
|
||||
YulArrow: '->';
|
||||
|
||||
/**
|
||||
* Yul identifiers consist of letters, dollar signs, underscores and numbers, but may not start with a number.
|
||||
|
||||
Reference in New Issue
Block a user