diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-19 00:02:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:26 +0000 |
commit | fa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (patch) | |
tree | b1c3d3d2e543e8e77c13760119ee7f446e1a858a /crates/ra_syntax/src/grammar.ron | |
parent | bcbfa2cc1146dfa23acb3e61f7ec053733a8fac1 (diff) |
Change parsing of struct field patterns
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index d8c1ae538..fc47c36d3 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -496,7 +496,12 @@ Grammar( | |||
496 | "PlaceholderPat": (), | 496 | "PlaceholderPat": (), |
497 | "PathPat": ( options: [ "Path" ] ), | 497 | "PathPat": ( options: [ "Path" ] ), |
498 | "StructPat": ( options: ["FieldPatList", "Path"] ), | 498 | "StructPat": ( options: ["FieldPatList", "Path"] ), |
499 | "FieldPatList": ( collections: [["pats", "FieldPat"]] ), | 499 | "FieldPatList": ( |
500 | collections: [ | ||
501 | ["field_pats", "FieldPat"], | ||
502 | ["bind_pats", "BindPat"], | ||
503 | ] | ||
504 | ), | ||
500 | "FieldPat": ( | 505 | "FieldPat": ( |
501 | traits: ["NameOwner"], | 506 | traits: ["NameOwner"], |
502 | options: ["Pat"] | 507 | options: ["Pat"] |