Skip to content

Commit f3759dd

Browse files
author
Jakub Bukaj
committed
rollup merge of #19026: alfie/doc-fixes
Updated all the adjacent character literals in the BCNF that cannot have an optional space between them
2 parents 20241aa + 9a5237d commit f3759dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ r##"foo #"# bar"##; // foo #"# bar
304304
#### Byte and byte string literals
305305

306306
```{.ebnf .gram}
307-
byte_lit : 'b' '\x27' byte_body '\x27' ;
308-
byte_string_lit : 'b' '"' string_body * '"' | 'b' 'r' raw_byte_string ;
307+
byte_lit : "b\x27" byte_body '\x27' ;
308+
byte_string_lit : "b\x22" string_body * '\x22' | "br" raw_byte_string ;
309309
310310
byte_body : ascii_non_single_quote
311311
| '\x5c' [ '\x27' | common_escape ] ;
@@ -381,10 +381,10 @@ num_suffix : int_suffix | float_suffix ;
381381
382382
int_suffix : 'u' int_suffix_size ?
383383
| 'i' int_suffix_size ? ;
384-
int_suffix_size : [ '8' | '1' '6' | '3' '2' | '6' '4' ] ;
384+
int_suffix_size : [ '8' | "16" | "32" | "64" ] ;
385385
386386
float_suffix : [ exponent | '.' dec_lit exponent ? ] ? float_suffix_ty ? ;
387-
float_suffix_ty : 'f' [ '3' '2' | '6' '4' ] ;
387+
float_suffix_ty : 'f' [ "32" | "64" ] ;
388388
exponent : ['E' | 'e'] ['-' | '+' ] ? dec_lit ;
389389
dec_lit : [ dec_digit | '_' ] + ;
390390
```
@@ -1862,7 +1862,7 @@ the namespace hierarchy as it normally would.
18621862
## Attributes
18631863

18641864
```{.ebnf .gram}
1865-
attribute : '#' '!' ? '[' meta_item ']' ;
1865+
attribute : "#!" ? '[' meta_item ']' ;
18661866
meta_item : ident [ '=' literal
18671867
| '(' meta_seq ')' ] ? ;
18681868
meta_seq : meta_item [ ',' meta_seq ] ? ;

0 commit comments

Comments
 (0)