diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-06 15:27:34 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-06 15:27:34 +0100 |
commit | ef782adc293deb287128f005dbab2038ba3ccdc1 (patch) | |
tree | 6e451b71b482e75a5a30548ab8f769c5ec17864c /crates/ra_syntax/src/grammar.ron | |
parent | 32db5884ada59c72aa7ab9f88910ef7c8f882e7d (diff) | |
parent | 12f8472d2800b2d7c05cb1fc466c80072ed8e283 (diff) |
Merge #1163
1163: fill struct fields diagnostic r=matklad a=pasa
implementation of #1095
Co-authored-by: Sergey Parilin <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index c7abdd6dc..b8665bbc8 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -451,8 +451,11 @@ Grammar( | |||
451 | traits: [ "AttrsOwner" ] | 451 | traits: [ "AttrsOwner" ] |
452 | ), | 452 | ), |
453 | "MatchGuard": (options: ["Expr"]), | 453 | "MatchGuard": (options: ["Expr"]), |
454 | "StructLit": (options: ["Path", "NamedFieldList", ["spread", "Expr"]]), | 454 | "StructLit": (options: ["Path", "NamedFieldList"]), |
455 | "NamedFieldList": (collections: [ ["fields", "NamedField"] ]), | 455 | "NamedFieldList": ( |
456 | collections: [ ["fields", "NamedField"] ], | ||
457 | options: [["spread", "Expr"]] | ||
458 | ), | ||
456 | "NamedField": (options: ["NameRef", "Expr"]), | 459 | "NamedField": (options: ["NameRef", "Expr"]), |
457 | "CallExpr": ( | 460 | "CallExpr": ( |
458 | traits: ["ArgListOwner"], | 461 | traits: ["ArgListOwner"], |