diff options
Diffstat (limited to 'crates/ra_parser/src/syntax_kind/generated.rs')
-rw-r--r-- | crates/ra_parser/src/syntax_kind/generated.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 0eed44ecf..03247ae38 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs | |||
@@ -66,6 +66,7 @@ pub enum SyntaxKind { | |||
66 | SHR, | 66 | SHR, |
67 | SHLEQ, | 67 | SHLEQ, |
68 | SHREQ, | 68 | SHREQ, |
69 | ASYNC_KW, | ||
69 | USE_KW, | 70 | USE_KW, |
70 | FN_KW, | 71 | FN_KW, |
71 | STRUCT_KW, | 72 | STRUCT_KW, |
@@ -233,6 +234,7 @@ use self::SyntaxKind::*; | |||
233 | impl SyntaxKind { | 234 | impl SyntaxKind { |
234 | pub fn is_keyword(self) -> bool { | 235 | pub fn is_keyword(self) -> bool { |
235 | match self { | 236 | match self { |
237 | | ASYNC_KW | ||
236 | | USE_KW | 238 | | USE_KW |
237 | | FN_KW | 239 | | FN_KW |
238 | | STRUCT_KW | 240 | | STRUCT_KW |
@@ -403,6 +405,7 @@ impl SyntaxKind { | |||
403 | SHR => &SyntaxInfo { name: "SHR" }, | 405 | SHR => &SyntaxInfo { name: "SHR" }, |
404 | SHLEQ => &SyntaxInfo { name: "SHLEQ" }, | 406 | SHLEQ => &SyntaxInfo { name: "SHLEQ" }, |
405 | SHREQ => &SyntaxInfo { name: "SHREQ" }, | 407 | SHREQ => &SyntaxInfo { name: "SHREQ" }, |
408 | ASYNC_KW => &SyntaxInfo { name: "ASYNC_KW" }, | ||
406 | USE_KW => &SyntaxInfo { name: "USE_KW" }, | 409 | USE_KW => &SyntaxInfo { name: "USE_KW" }, |
407 | FN_KW => &SyntaxInfo { name: "FN_KW" }, | 410 | FN_KW => &SyntaxInfo { name: "FN_KW" }, |
408 | STRUCT_KW => &SyntaxInfo { name: "STRUCT_KW" }, | 411 | STRUCT_KW => &SyntaxInfo { name: "STRUCT_KW" }, |
@@ -570,6 +573,7 @@ impl SyntaxKind { | |||
570 | } | 573 | } |
571 | pub fn from_keyword(ident: &str) -> Option<SyntaxKind> { | 574 | pub fn from_keyword(ident: &str) -> Option<SyntaxKind> { |
572 | let kw = match ident { | 575 | let kw = match ident { |
576 | "async" => ASYNC_KW, | ||
573 | "use" => USE_KW, | 577 | "use" => USE_KW, |
574 | "fn" => FN_KW, | 578 | "fn" => FN_KW, |
575 | "struct" => STRUCT_KW, | 579 | "struct" => STRUCT_KW, |