We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c892d commit 487ca5cCopy full SHA for 487ca5c
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