From bac774d6d67f0916b0a394bd6414bf27026890de Mon Sep 17 00:00:00 2001 From: Jonathan Brachthäuser Date: Wed, 21 Dec 2016 21:35:56 +0100 Subject: Fix typos, remove unused defs, adopt hexNumeral to 2.12 grammar --- docs/docs/internals/syntax.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs') 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] -- cgit v1.2.3