diff options
author | roblabla <[email protected]> | 2019-12-22 00:38:23 +0000 |
---|---|---|
committer | roblabla <[email protected]> | 2019-12-22 01:32:08 +0000 |
commit | b04d4a88d1ba7f04445e807b6a816930b1e9bbf2 (patch) | |
tree | 2c05ff9b5f5aadc7338c6ba317b28c4d12ce9f7c /crates/ra_syntax/src/grammar.ron | |
parent | 90f3b31efc1afe5de671fd6076fef3240f4151ab (diff) |
Parse const generics
Fixes #1574
Fixes #2281
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 9ffa9095b..d6802b6fb 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -243,6 +243,7 @@ Grammar( | |||
243 | "TYPE_PARAM_LIST", | 243 | "TYPE_PARAM_LIST", |
244 | "LIFETIME_PARAM", | 244 | "LIFETIME_PARAM", |
245 | "TYPE_PARAM", | 245 | "TYPE_PARAM", |
246 | "CONST_PARAM", | ||
246 | "TYPE_ARG_LIST", | 247 | "TYPE_ARG_LIST", |
247 | "LIFETIME_ARG", | 248 | "LIFETIME_ARG", |
248 | "TYPE_ARG", | 249 | "TYPE_ARG", |
@@ -602,6 +603,10 @@ Grammar( | |||
602 | options: [("default_type", "TypeRef")], | 603 | options: [("default_type", "TypeRef")], |
603 | traits: ["NameOwner", "AttrsOwner", "TypeBoundsOwner"], | 604 | traits: ["NameOwner", "AttrsOwner", "TypeBoundsOwner"], |
604 | ), | 605 | ), |
606 | "ConstParam": ( | ||
607 | options: [("default_val", "Expr")], | ||
608 | traits: ["NameOwner", "AttrsOwner", "TypeAscriptionOwner"], | ||
609 | ), | ||
605 | "LifetimeParam": ( | 610 | "LifetimeParam": ( |
606 | traits: ["AttrsOwner"], | 611 | traits: ["AttrsOwner"], |
607 | ), | 612 | ), |