diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-18 13:52:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:26 +0000 |
commit | f9a6050034b2ab4358d8a46dd8432de41cebdf0c (patch) | |
tree | 9de2701b95000fc0a089213bebf8b88924ff61c4 /crates/ra_syntax/src/grammar.ron | |
parent | d2769837f1f9c94b977bd6022090f8e5cd02410c (diff) |
Move parsing of field pattern lists to the parser (where it belongs)
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 d58e0dd35..d8c1ae538 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -154,6 +154,7 @@ Grammar( | |||
154 | "PATH_PAT", | 154 | "PATH_PAT", |
155 | "STRUCT_PAT", | 155 | "STRUCT_PAT", |
156 | "FIELD_PAT_LIST", | 156 | "FIELD_PAT_LIST", |
157 | "FIELD_PAT", | ||
157 | "TUPLE_STRUCT_PAT", | 158 | "TUPLE_STRUCT_PAT", |
158 | "TUPLE_PAT", | 159 | "TUPLE_PAT", |
159 | "SLICE_PAT", | 160 | "SLICE_PAT", |
@@ -495,7 +496,11 @@ Grammar( | |||
495 | "PlaceholderPat": (), | 496 | "PlaceholderPat": (), |
496 | "PathPat": ( options: [ "Path" ] ), | 497 | "PathPat": ( options: [ "Path" ] ), |
497 | "StructPat": ( options: ["FieldPatList", "Path"] ), | 498 | "StructPat": ( options: ["FieldPatList", "Path"] ), |
498 | "FieldPatList": (), | 499 | "FieldPatList": ( collections: [["pats", "FieldPat"]] ), |
500 | "FieldPat": ( | ||
501 | traits: ["NameOwner"], | ||
502 | options: ["Pat"] | ||
503 | ), | ||
499 | "TupleStructPat": ( | 504 | "TupleStructPat": ( |
500 | options: ["Path"], | 505 | options: ["Path"], |
501 | collections: [["args", "Pat"]], | 506 | collections: [["args", "Pat"]], |