Skip to content

Commit bac774d

Browse files
committed
Fix typos, remove unused defs, adopt hexNumeral to 2.12 grammar
1 parent f9951fa commit bac774d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/docs/internals/syntax.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ id ::= plainid
4040
| INT // interpolation id, only for quasi-quotes
4141
idrest ::= {letter | digit} [‘_’ op]
4242
43-
integerLiteral ::= (decimalNumeral | hexNumera) [‘L’ | ‘l’]
43+
integerLiteral ::= (decimalNumeral | hexNumeral) [‘L’ | ‘l’]
4444
decimalNumeral ::= ‘0’ | nonZeroDigit {digit}
45-
hexNumeral ::= ‘0’ ‘x’ hexDigit {hexDigit}
45+
hexNumeral ::= ‘0’ (‘x’ | ‘X’) hexDigit {hexDigit}
4646
digit ::= ‘0’ | nonZeroDigit
4747
nonZeroDigit ::= ‘1’ | … | ‘9’
48-
octalDigit ::= ‘0’ | … | ‘7’
4948
5049
floatingPointLiteral
5150
::= digit {digit} ‘.’ {digit} [exponentPart] [floatType]

0 commit comments

Comments
 (0)