Skip to content

Commit 4de83de

Browse files
committed
Fix: digits should not include underscore
1 parent e560bb6 commit 4de83de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tokens.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ literal_. The grammar for recognizing the two kinds of literals is mixed.
233233
> HEX_LITERAL :
234234
> &nbsp;&nbsp; `0x` (HEX_DIGIT|`_`)<sup>\*</sup> HEX_DIGIT (HEX_DIGIT|`_`)<sup>\*</sup>
235235
>
236-
> BIN_DIGIT : [`0`-`1` `_`]
236+
> BIN_DIGIT : [`0`-`1`]
237237
>
238-
> OCT_DIGIT : [`0`-`7` `_`]
238+
> OCT_DIGIT : [`0`-`7`]
239239
>
240-
> DEC_DIGIT : [`0`-`9` `_`]
240+
> DEC_DIGIT : [`0`-`9`]
241241
>
242-
> HEX_DIGIT : [`0`-`9` `a`-`f` `A`-`F` `_`]
242+
> HEX_DIGIT : [`0`-`9` `a`-`f` `A`-`F`]
243243
>
244244
> INTEGER_SUFFIX :
245245
> &nbsp;&nbsp; &nbsp;&nbsp; `u8` | `u16` | `u32` | `u64` | `usize`

0 commit comments

Comments
 (0)