aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/grammar.txt
diff options
context:
space:
mode:
authorNicolai <NicolaiSoeborg@users.noreply.github.com>2016-07-20 08:42:02 +0800
committerNicolai <NicolaiSoeborg@users.noreply.github.com>2016-07-20 08:42:02 +0800
commit68b72d866708f7ff0485ab815c52dec7274ee8b5 (patch)
treecd5dd46202c3b24847a86d87b78e2ee5be982918 /libsolidity/grammar.txt
parent6f7d8fb65b1a2351824aa2eb9b1bab6057840c3c (diff)
downloaddexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.gz
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.bz2
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.lz
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.xz
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.tar.zst
dexon-solidity-68b72d866708f7ff0485ab815c52dec7274ee8b5.zip
NumberLiteral: Allow 0x prefix
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r--libsolidity/grammar.txt2
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]*