mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
NumberLiteral: Allow 0x prefix
This commit is contained in:
parent
6f7d8fb65b
commit
68b72d8667
@ -55,7 +55,7 @@ IndexAccess = Expression '[' Expression? ']'
|
||||
PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | StringLiteral | ElementaryTypeName | '(' Expression ')'
|
||||
|
||||
BooleanLiteral = 'true' | 'false'
|
||||
NumberLiteral = [0-9]+
|
||||
NumberLiteral = '0x'? [0-9]+
|
||||
StringLiteral = '"' [a-zA-Z_0-9]* '"'
|
||||
Identifier = [a-zA-Z_] [a-zA-Z_0-9]*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user