File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -216,4 +216,4 @@ expression `()`.
216
216
[ _Expression_ ] : expressions.html
217
217
[ _BlockExpression_ ] : expressions/block-expr.html
218
218
219
- [ LIFETIME_OR_LABEL ] : tokens.html#symbols
219
+ [ LIFETIME_OR_LABEL ] : tokens.html#lifetimes-and-loop-labels
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ a single integer literal.
411
411
> ** <sup >Lexer</sup >**
412
412
> FLOAT_LITERAL :
413
413
>   ;  ;   ;  ; DEC_LITERAL ` . `
414
- > _ (not immediately followed by ` . ` , ` _ ` or an identifier _ )
414
+ > _ (not immediately followed by ` . ` , ` _ ` or an [ identifier ] _ )
415
415
>   ;  ; | DEC_LITERAL FLOAT_EXPONENT
416
416
>   ;  ; | DEC_LITERAL ` . ` DEC_LITERAL FLOAT_EXPONENT<sup >?</sup >
417
417
>   ;  ; | DEC_LITERAL (` . ` DEC_LITERAL)<sup >?</sup >
@@ -476,6 +476,16 @@ The representation semantics of floating-point numbers are described in
476
476
477
477
The two values of the boolean type are written ` true ` and ` false ` .
478
478
479
+ ## Lifetimes and loop labels
480
+
481
+ > ** <sup >Lexer</sup >**
482
+ > LIFETIME_OR_LABEL:
483
+ >   ;  ;   ;  ; ` ' ` [ IDENTIFIER] [ identifier ]
484
+
485
+ Lifetime parameters and [ loop labels] both use this syntax.
486
+
487
+ [ loop labels ] : expressions/loop-expr.html
488
+
479
489
## Symbols
480
490
481
491
Symbols are a general class of printable [ tokens] that play structural
@@ -490,3 +500,4 @@ They are catalogued in [the Symbols section][symbols] of the Grammar document.
490
500
[ tokens ] : #tokens
491
501
[ symbols ] : ../grammar.html#symbols
492
502
[ keywords ] : keywords.html
503
+ [ identifier ] : identifiers.html
You can’t perform that action at this time.
0 commit comments