Skip to content

Commit 3dc11d3

Browse files
tokens.md: add one more case to the "Reserved forms" lexer block
1 parent 8dcacf6 commit 3dc11d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tokens.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Examples of such tokens:
536536
>    | OCT_LITERAL \[`8`-`9`​]\
537537
>    | ( BIN_LITERAL | OCT_LITERAL | HEX_LITERAL ) `.` \
538538
>          _(not immediately followed by `.`, `_` or an XID_Start character)_\
539-
>    | ( BIN_LITERAL | OCT_LITERAL ) `e`\
539+
>    | ( BIN_LITERAL | OCT_LITERAL ) (`e`|`E`)\
540540
> &nbsp;&nbsp; | `0b` `_`<sup>\*</sup> _end of input or not BIN_DIGIT_\
541541
> &nbsp;&nbsp; | `0o` `_`<sup>\*</sup> _end of input or not OCT_DIGIT_\
542542
> &nbsp;&nbsp; | `0x` `_`<sup>\*</sup> _end of input or not HEX_DIGIT_\
@@ -549,7 +549,7 @@ Due to the possible ambiguity these raise, they are rejected by the tokenizer in
549549

550550
* An unsuffixed binary, octal, or hexadecimal literal followed, without intervening whitespace, by a period character (with the same restrictions on what follows the period as for floating-point literals).
551551

552-
* An unsuffixed binary or octal literal followed, without intervening whitespace, by the character `e`.
552+
* An unsuffixed binary or octal literal followed, without intervening whitespace, by the character `e` or `E`.
553553

554554
* Input which begins with one of the radix prefixes but is not a valid binary, octal, or hexadecimal literal (because it contains no digits).
555555

0 commit comments

Comments
 (0)