Skip to content

Commit 36c8d99

Browse files
committed
Remove parentheses around suffixes
This helps to standardize how suffixes are written. Normally they do not use parentheses, and visually I don't think they entirely necessary.
1 parent a547e37 commit 36c8d99

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tokens.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ r[lex.token.literal.float.syntax]
632632
> **<sup>Lexer</sup>**\
633633
> FLOAT_LITERAL :\
634634
> &nbsp;&nbsp; &nbsp;&nbsp; DEC_LITERAL `.`
635-
> _(not immediately followed by `.`, `_` or an XID_Start character)_\
635+
> _not immediately followed by `.`, `_` or an XID_Start character_\
636636
> &nbsp;&nbsp; | DEC_LITERAL `.` DEC_LITERAL SUFFIX_NO_E<sup>?</sup>\
637637
> &nbsp;&nbsp; | DEC_LITERAL (`.` DEC_LITERAL)<sup>?</sup> FLOAT_EXPONENT SUFFIX<sup>?</sup>
638638
>
@@ -691,7 +691,7 @@ r[lex.token.literal.reserved.syntax]
691691
> &nbsp;&nbsp; &nbsp;&nbsp; BIN_LITERAL \[`2`-`9`&ZeroWidthSpace;]\
692692
> &nbsp;&nbsp; | OCT_LITERAL \[`8`-`9`&ZeroWidthSpace;]\
693693
> &nbsp;&nbsp; | ( BIN_LITERAL | OCT_LITERAL | HEX_LITERAL ) `.` \
694-
> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; _(not immediately followed by `.`, `_` or an XID_Start character)_\
694+
> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; _not immediately followed by `.`, `_` or an XID_Start character_\
695695
> &nbsp;&nbsp; | ( BIN_LITERAL | OCT_LITERAL ) (`e`|`E`)\
696696
> &nbsp;&nbsp; | `0b` `_`<sup>\*</sup> \<end of input or not BIN_DIGIT\>\
697697
> &nbsp;&nbsp; | `0o` `_`<sup>\*</sup> \<end of input or not OCT_DIGIT\>\
@@ -739,22 +739,22 @@ r[lex.token.life.syntax]
739739
> **<sup>Lexer</sup>**\
740740
> LIFETIME_TOKEN :\
741741
> &nbsp;&nbsp; &nbsp;&nbsp; `'` [IDENTIFIER_OR_KEYWORD][identifier]
742-
> _(not immediately followed by `'`)_\
742+
> _not immediately followed by `'`_\
743743
> &nbsp;&nbsp; | `'_`
744-
> _(not immediately followed by `'`)_\
744+
> _not immediately followed by `'`_\
745745
> &nbsp;&nbsp; | RAW_LIFETIME
746746
>
747747
> LIFETIME_OR_LABEL :\
748748
> &nbsp;&nbsp; &nbsp;&nbsp; `'` [NON_KEYWORD_IDENTIFIER][identifier]
749-
> _(not immediately followed by `'`)_\
749+
> _not immediately followed by `'`_\
750750
> &nbsp;&nbsp; | RAW_LIFETIME
751751
>
752752
> RAW_LIFETIME :\
753753
> &nbsp;&nbsp; `'r#` [IDENTIFIER_OR_KEYWORD][identifier] <sub>*except `crate`, `self`, `super`, `Self`*</sub>
754-
> _(not immediately followed by `'`)_
754+
> _not immediately followed by `'`_
755755
>
756756
> RESERVED_RAW_LIFETIME : `'r#_`
757-
> _(not immediately followed by `'`)_
757+
> _not immediately followed by `'`_
758758
759759
r[lex.token.life.intro]
760760
Lifetime parameters and [loop labels] use LIFETIME_OR_LABEL tokens. Any

0 commit comments

Comments
 (0)