diff options
author | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-20 08:42:02 +0800 |
---|---|---|
committer | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-20 08:42:02 +0800 |
commit | 68b72d866708f7ff0485ab815c52dec7274ee8b5 (patch) | |
tree | cd5dd46202c3b24847a86d87b78e2ee5be982918 | |
parent | 6f7d8fb65b1a2351824aa2eb9b1bab6057840c3c (diff) | |
download | dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.gz dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.zst dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.zip |
NumberLiteral: Allow 0x prefix
-rw-r--r-- | libsolidity/grammar.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 30fbd6b5..c70f56bd 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -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]* |