Skip to content

Commit 87de93c

Browse files
Raw lifetimes
1 parent 23ce619 commit 87de93c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tokens.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,17 @@ r[lex.token.life.syntax]
759759
> _(not immediately followed by `'`)_\
760760
>    | `'_`
761761
> _(not immediately followed by `'`)_
762+
>    | RAW_LIFETIME
762763
>
763764
> LIFETIME_OR_LABEL :\
764765
>       `'` [NON_KEYWORD_IDENTIFIER][identifier]
765766
> _(not immediately followed by `'`)_\
766767
>    | `'_`
767768
> _(not immediately followed by `'`)_
769+
>    | RAW_LIFETIME
770+
>
771+
> RAW_LIFETIME :\
772+
>       `'r#` [IDENTIFIER_OR_KEYWORD][identifier]
768773
769774
r[lex.token.life.intro]
770775
Lifetime parameters and [loop labels] use LIFETIME_OR_LABEL tokens. Any

0 commit comments

Comments
 (0)