aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-20 17:07:56 +0800
committerGitHub <noreply@github.com>2018-09-20 17:07:56 +0800
commit28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5 (patch)
tree8336b35a1cac5a667a27c64c259b398c94626a8f /docs
parent2150aea344c259eb6541cb3617e7ae0f3d3381dd (diff)
parentb409faa675be96dda961b14eca9adde62be63263 (diff)
downloaddexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar.gz
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar.bz2
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar.lz
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar.xz
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.tar.zst
dexon-solidity-28c9b5db6ab709c734c16da5e3a9da5cfb6f67e5.zip
Merge pull request #5011 from hydai/disallow_uppercase_x
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? )* )? ')'