There was an error while loading. Please reload this page.
2 parents 12b4629 + 487ca5c commit fb5b0d0Copy full SHA for fb5b0d0
src/doc/grammar.md
@@ -510,8 +510,9 @@ unit_expr : "()" ;
510
### Structure expressions
511
512
```antlr
513
-struct_expr : expr_path '{' ident ':' expr
514
- [ ',' ident ':' expr ] *
+struct_expr_field_init : ident | ident ':' expr ;
+struct_expr : expr_path '{' struct_expr_field_init
515
+ [ ',' struct_expr_field_init ] *
516
[ ".." expr ] '}' |
517
expr_path '(' expr
518
[ ',' expr ] * ')' |
0 commit comments