aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorhydai <z54981220@gmail.com>2018-09-19 01:09:16 +0800
committerhydai <z54981220@gmail.com>2018-09-19 22:01:15 +0800
commitb409faa675be96dda961b14eca9adde62be63263 (patch)
tree2c1bbc2c6af98066e71356cb0d09d8978cff67ba /docs
parent5f919d02abc21e17d533a18876eabdf1a91939f7 (diff)
downloaddexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar.gz
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar.bz2
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar.lz
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar.xz
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.tar.zst
dexon-solidity-b409faa675be96dda961b14eca9adde62be63263.zip
Disallow uppercase X in hex number literals
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 594998f0..b9c8ddb9 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -132,7 +132,7 @@ HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
Identifier = [a-zA-Z_$] [a-zA-Z_$0-9]*
-HexNumber = '0' [xX] [0-9a-fA-F]+
+HexNumber = '0x' [0-9a-fA-F]+
DecimalNumber = [0-9]+ ( '.' [0-9]* )? ( [eE] [0-9]+ )?
TupleExpression = '(' ( Expression? ( ',' Expression? )* )? ')'