Skip to content

Commit 770c3f6

Browse files
authored
Merge pull request #1150 from pushkine/patch-5
Add undocumented outer attributes above StructExpr fields
2 parents 9894da5 + e4edc3e commit 770c3f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/expressions/struct-expr.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
> &nbsp;&nbsp; _StructExprField_ (`,` _StructExprField_)<sup>\*</sup> (`,` _StructBase_ | `,`<sup>?</sup>)
1414
>
1515
> _StructExprField_ :\
16-
> &nbsp;&nbsp; &nbsp;&nbsp; [IDENTIFIER]\
17-
> &nbsp;&nbsp; | ([IDENTIFIER] | [TUPLE_INDEX]) `:` [_Expression_]
16+
> &nbsp;&nbsp; [_OuterAttribute_] <sup>\*</sup>\
17+
> &nbsp;&nbsp; (\
18+
> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; [IDENTIFIER]\
19+
> &nbsp;&nbsp; &nbsp;&nbsp; | ([IDENTIFIER] | [TUPLE_INDEX]) `:` [_Expression_]\
20+
> &nbsp;&nbsp; )
1821
>
1922
> _StructBase_ :\
2023
> &nbsp;&nbsp; `..` [_Expression_]
@@ -121,6 +124,7 @@ let a = Gamma; // Gamma unit value.
121124
let b = Gamma{}; // Exact same value as `a`.
122125
```
123126

127+
[_OuterAttribute_]: ../attributes.md
124128
[IDENTIFIER]: ../identifiers.md
125129
[TUPLE_INDEX]: ../tokens.md#tuple-index
126130
[_Expression_]: ../expressions.md

0 commit comments

Comments
 (0)