diff options
author | Ville Penttinen <[email protected]> | 2019-03-30 15:11:21 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-30 15:11:21 +0000 |
commit | 23fdc562bf06bd001ec728d63a8f5b945bd96700 (patch) | |
tree | ace25468b177e1fa5899ca18daee48cc420372ed /crates/ra_syntax/src/grammar.ron | |
parent | 9ebd14a14e20aebc8e176a8dcb22376eb3a4d73e (diff) |
Add new TYPE_BOUND_LIST and TYPE_BOUND syntax kinds
These are now used when parsing type bounds. In addition parsing paths inside a
bound now does not recursively parse paths, rather they are treated as separate
bounds, separated by +.
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index ad6d74162..660a2b207 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -243,6 +243,8 @@ Grammar( | |||
243 | "PARAM", | 243 | "PARAM", |
244 | "SELF_PARAM", | 244 | "SELF_PARAM", |
245 | "ARG_LIST", | 245 | "ARG_LIST", |
246 | "TYPE_BOUND", | ||
247 | "TYPE_BOUND_LIST", | ||
246 | ], | 248 | ], |
247 | ast: { | 249 | ast: { |
248 | "SourceFile": ( | 250 | "SourceFile": ( |
@@ -577,6 +579,17 @@ Grammar( | |||
577 | traits: ["AttrsOwner"], | 579 | traits: ["AttrsOwner"], |
578 | ), | 580 | ), |
579 | "Lifetime": ( traits: ["AstToken"] ), | 581 | "Lifetime": ( traits: ["AstToken"] ), |
582 | "TypeBound": ( | ||
583 | options: [ | ||
584 | "TypeRef", | ||
585 | "Lifetime", | ||
586 | ] | ||
587 | ), | ||
588 | "TypeBoundList": ( | ||
589 | collections: [ | ||
590 | ["bounds", "TypeBound"], | ||
591 | ] | ||
592 | ), | ||
580 | "WhereClause": (), | 593 | "WhereClause": (), |
581 | "ExprStmt": ( | 594 | "ExprStmt": ( |
582 | options: [ ["expr", "Expr"] ] | 595 | options: [ ["expr", "Expr"] ] |