@@ -304,8 +304,8 @@ r##"foo #"# bar"##; // foo #"# bar
304
304
#### Byte and byte string literals
305
305
306
306
``` {.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 ;
309
309
310
310
byte_body : ascii_non_single_quote
311
311
| '\x5c' [ '\x27' | common_escape ] ;
@@ -381,10 +381,10 @@ num_suffix : int_suffix | float_suffix ;
381
381
382
382
int_suffix : 'u' int_suffix_size ?
383
383
| 'i' int_suffix_size ? ;
384
- int_suffix_size : [ '8' | '1' '6' | '3' '2' | '6' '4' ] ;
384
+ int_suffix_size : [ '8' | "16" | "32" | "64" ] ;
385
385
386
386
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" ] ;
388
388
exponent : ['E' | 'e'] ['-' | '+' ] ? dec_lit ;
389
389
dec_lit : [ dec_digit | '_' ] + ;
390
390
```
@@ -1862,7 +1862,7 @@ the namespace hierarchy as it normally would.
1862
1862
## Attributes
1863
1863
1864
1864
``` {.ebnf .gram}
1865
- attribute : '#' '!' ? '[' meta_item ']' ;
1865
+ attribute : "#!" ? '[' meta_item ']' ;
1866
1866
meta_item : ident [ '=' literal
1867
1867
| '(' meta_seq ')' ] ? ;
1868
1868
meta_seq : meta_item [ ',' meta_seq ] ? ;
0 commit comments