aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/internals/syntax.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/docs/internals/syntax.md b/docs/docs/internals/syntax.md
index 8ff9dc8ef..7e249d6a0 100644
--- a/docs/docs/internals/syntax.md
+++ b/docs/docs/internals/syntax.md
@@ -40,12 +40,11 @@ id ::= plainid
| INT // interpolation id, only for quasi-quotes
idrest ::= {letter | digit} [‘_’ op]
-integerLiteral ::= (decimalNumeral | hexNumera) [‘L’ | ‘l’]
+integerLiteral ::= (decimalNumeral | hexNumeral) [‘L’ | ‘l’]
decimalNumeral ::= ‘0’ | nonZeroDigit {digit}
-hexNumeral ::= ‘0’ ‘x’ hexDigit {hexDigit}
+hexNumeral ::= ‘0’ (‘x’ | ‘X’) hexDigit {hexDigit}
digit ::= ‘0’ | nonZeroDigit
nonZeroDigit ::= ‘1’ | … | ‘9’
-octalDigit ::= ‘0’ | … | ‘7’
floatingPointLiteral
::= digit {digit} ‘.’ {digit} [exponentPart] [floatType]