aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorFederico Bond <federicobond@gmail.com>2018-09-02 23:57:21 +0800
committerGitHub <noreply@github.com>2018-09-02 23:57:21 +0800
commitf2f1462585282adc98eebf1f7b0690891971adf0 (patch)
treef80af7b4c151e71ccde86114a762bb1adc0b1d7f /docs/grammar.txt
parent410d288dfc2e08c42df58c7e01ad5c332ce92727 (diff)
downloaddexon-solidity-f2f1462585282adc98eebf1f7b0690891971adf0.tar.gz
dexon-solidity-f2f1462585282adc98eebf1f7b0690891971adf0.tar.zst
dexon-solidity-f2f1462585282adc98eebf1f7b0690891971adf0.zip
Add hex numbers with uppercase X to grammar.txt
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 809fcffc..43ef07a9 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -131,7 +131,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 = '0x' [0-9a-fA-F]+
+HexNumber = '0' [xX] [0-9a-fA-F]+
DecimalNumber = [0-9]+ ( '.' [0-9]* )? ( [eE] [0-9]+ )?
TupleExpression = '(' ( Expression? ( ',' Expression? )* )? ')'