diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/syntax_kinds.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syntax_kinds.rs b/src/syntax_kinds.rs index 7577fa037..f5d01c6f3 100644 --- a/src/syntax_kinds.rs +++ b/src/syntax_kinds.rs | |||
@@ -28,6 +28,8 @@ pub enum SyntaxKind { | |||
28 | WHILE_KW, | 28 | WHILE_KW, |
29 | IF_KW, | 29 | IF_KW, |
30 | MATCH_KW, | 30 | MATCH_KW, |
31 | CONST_KW, | ||
32 | STATIC_KW, | ||
31 | ERROR, | 33 | ERROR, |
32 | IDENT, | 34 | IDENT, |
33 | UNDERSCORE, | 35 | UNDERSCORE, |
@@ -137,6 +139,8 @@ impl SyntaxKind { | |||
137 | WHILE_KW => &SyntaxInfo { name: "WHILE_KW" }, | 139 | WHILE_KW => &SyntaxInfo { name: "WHILE_KW" }, |
138 | IF_KW => &SyntaxInfo { name: "IF_KW" }, | 140 | IF_KW => &SyntaxInfo { name: "IF_KW" }, |
139 | MATCH_KW => &SyntaxInfo { name: "MATCH_KW" }, | 141 | MATCH_KW => &SyntaxInfo { name: "MATCH_KW" }, |
142 | CONST_KW => &SyntaxInfo { name: "CONST_KW" }, | ||
143 | STATIC_KW => &SyntaxInfo { name: "STATIC_KW" }, | ||
140 | ERROR => &SyntaxInfo { name: "ERROR" }, | 144 | ERROR => &SyntaxInfo { name: "ERROR" }, |
141 | IDENT => &SyntaxInfo { name: "IDENT" }, | 145 | IDENT => &SyntaxInfo { name: "IDENT" }, |
142 | UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, | 146 | UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, |
@@ -242,6 +246,8 @@ pub(crate) fn ident_to_keyword(ident: &str) -> Option<SyntaxKind> { | |||
242 | "while" => Some(WHILE_KW), | 246 | "while" => Some(WHILE_KW), |
243 | "if" => Some(IF_KW), | 247 | "if" => Some(IF_KW), |
244 | "match" => Some(MATCH_KW), | 248 | "match" => Some(MATCH_KW), |
249 | "const" => Some(CONST_KW), | ||
250 | "static" => Some(STATIC_KW), | ||
245 | _ => None, | 251 | _ => None, |
246 | } | 252 | } |
247 | } | 253 | } |