File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 53cd0bc772c5b73d8059a02f828ceecf9ed2287c
32
+ refs/heads/stable: 218d38fb94379feca89eb858b309890d513c35da
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ The two values of the boolean type are written `true` and `false`.
253
253
### Symbols
254
254
255
255
``` antlr
256
- symbol : "::" "->"
256
+ symbol : "::" | "->"
257
257
| '#' | '[' | ']' | '(' | ')' | '{' | '}'
258
258
| ',' | ';' ;
259
259
```
@@ -342,7 +342,7 @@ path_glob : ident [ "::" [ path_glob
342
342
| '*' ] ] ?
343
343
| '{' path_item [ ',' path_item ] * '}' ;
344
344
345
- path_item : ident | "mod " ;
345
+ path_item : ident | "self " ;
346
346
```
347
347
348
348
### Functions
@@ -424,7 +424,7 @@ See [Use declarations](#use-declarations).
424
424
## Attributes
425
425
426
426
``` antlr
427
- attribute : "#!" ? '[' meta_item ']' ;
427
+ attribute : '#' '!' ? '[' meta_item ']' ;
428
428
meta_item : ident [ '=' literal
429
429
| '(' meta_seq ')' ] ? ;
430
430
meta_seq : meta_item [ ',' meta_seq ] ? ;
@@ -515,8 +515,7 @@ struct_expr : expr_path '{' ident ':' expr
515
515
### Block expressions
516
516
517
517
``` antlr
518
- block_expr : '{' [ view_item ] *
519
- [ stmt ';' | item ] *
518
+ block_expr : '{' [ stmt ';' | item ] *
520
519
[ expr ] '}' ;
521
520
```
522
521
@@ -537,7 +536,7 @@ field_expr : expr '.' ident ;
537
536
``` antlr
538
537
array_expr : '[' "mut" ? array_elems? ']' ;
539
538
540
- array_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
539
+ array_elems : [expr [',' expr]*] | [expr ';' expr] ;
541
540
```
542
541
543
542
### Index expressions
You can’t perform that action at this time.
0 commit comments