diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-31 11:43:50 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-31 11:43:50 +0100 |
commit | dec9bde10868b5e459535449476d17a6a0987b3e (patch) | |
tree | 91bb5a70b999474e4d8212245fe265e71c3afde4 /crates/ra_syntax/src/grammar.ron | |
parent | 4666138c910a655deb0e8129b0a1dc5974b49bdf (diff) | |
parent | 3f62ab8f510fdac1eeab515c515c437d6dd141e6 (diff) |
Merge #1038
1038: Add WherePred to allow predicate access in WhereClause r=matklad a=vipentti
Lifetime bounds in where predicates are now also parsed into `TYPE_BOUND_LIST` to allow unified access to bounds.
Co-authored-by: Ville Penttinen <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 18730a894..1123c2e95 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -595,7 +595,20 @@ Grammar( | |||
595 | ["bounds", "TypeBound"], | 595 | ["bounds", "TypeBound"], |
596 | ] | 596 | ] |
597 | ), | 597 | ), |
598 | "WhereClause": (), | 598 | "WherePred": ( |
599 | options: [ | ||
600 | "TypeRef", | ||
601 | "Lifetime", | ||
602 | ], | ||
603 | traits: [ | ||
604 | "TypeBoundsOwner", | ||
605 | ], | ||
606 | ), | ||
607 | "WhereClause": ( | ||
608 | collections: [ | ||
609 | ["predicates", "WherePred"], | ||
610 | ], | ||
611 | ), | ||
599 | "ExprStmt": ( | 612 | "ExprStmt": ( |
600 | options: [ ["expr", "Expr"] ] | 613 | options: [ ["expr", "Expr"] ] |
601 | ), | 614 | ), |