aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonathan Brachthäuser <jonathan@b-studios.de>2016-12-21 21:35:56 +0100
committerJonathan Brachthäuser <jonathan@b-studios.de>2016-12-21 21:37:06 +0100
commitbac774d6d67f0916b0a394bd6414bf27026890de (patch)
tree4180ae8b1e2010ae99f6113f20acacd7c298dd3a /docs
parentf9951fa2ad882302f575e47a544e397fe95de53c (diff)
downloaddotty-bac774d6d67f0916b0a394bd6414bf27026890de.tar.gz
dotty-bac774d6d67f0916b0a394bd6414bf27026890de.tar.bz2
dotty-bac774d6d67f0916b0a394bd6414bf27026890de.zip
Fix typos, remove unused defs, adopt hexNumeral to 2.12 grammar
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]