2641: Parse const generics r=matklad a=roblabla

Adds very primitive support for parsing const generics (`const IDENT: TY`) so that rust-analyzer stops complaining about the syntax being invalid.

Fixes #1574
Fixes #2281 

Co-authored-by: roblabla <unfiltered@roblab.la>
This commit is contained in:
bors[bot]
2019-12-22 07:56:33 +00:00
committed by GitHub
6 changed files with 71 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ pub enum SyntaxKind {
TYPE_PARAM_LIST,
LIFETIME_PARAM,
TYPE_PARAM,
CONST_PARAM,
TYPE_ARG_LIST,
LIFETIME_ARG,
TYPE_ARG,