diff options
Diffstat (limited to 'src/syntax_kinds.rs')
-rw-r--r-- | src/syntax_kinds.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/syntax_kinds.rs b/src/syntax_kinds.rs index 519326f48..cd4c753a9 100644 --- a/src/syntax_kinds.rs +++ b/src/syntax_kinds.rs | |||
@@ -23,6 +23,11 @@ pub enum SyntaxKind { | |||
23 | SUPER_KW, | 23 | SUPER_KW, |
24 | IN_KW, | 24 | IN_KW, |
25 | WHERE_KW, | 25 | WHERE_KW, |
26 | FOR_KW, | ||
27 | LOOP_KW, | ||
28 | WHILE_KW, | ||
29 | IF_KW, | ||
30 | MATCH_KW, | ||
26 | ERROR, | 31 | ERROR, |
27 | IDENT, | 32 | IDENT, |
28 | UNDERSCORE, | 33 | UNDERSCORE, |
@@ -125,6 +130,11 @@ impl SyntaxKind { | |||
125 | SUPER_KW => &SyntaxInfo { name: "SUPER_KW" }, | 130 | SUPER_KW => &SyntaxInfo { name: "SUPER_KW" }, |
126 | IN_KW => &SyntaxInfo { name: "IN_KW" }, | 131 | IN_KW => &SyntaxInfo { name: "IN_KW" }, |
127 | WHERE_KW => &SyntaxInfo { name: "WHERE_KW" }, | 132 | WHERE_KW => &SyntaxInfo { name: "WHERE_KW" }, |
133 | FOR_KW => &SyntaxInfo { name: "FOR_KW" }, | ||
134 | LOOP_KW => &SyntaxInfo { name: "LOOP_KW" }, | ||
135 | WHILE_KW => &SyntaxInfo { name: "WHILE_KW" }, | ||
136 | IF_KW => &SyntaxInfo { name: "IF_KW" }, | ||
137 | MATCH_KW => &SyntaxInfo { name: "MATCH_KW" }, | ||
128 | ERROR => &SyntaxInfo { name: "ERROR" }, | 138 | ERROR => &SyntaxInfo { name: "ERROR" }, |
129 | IDENT => &SyntaxInfo { name: "IDENT" }, | 139 | IDENT => &SyntaxInfo { name: "IDENT" }, |
130 | UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, | 140 | UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, |
@@ -223,6 +233,11 @@ pub(crate) fn ident_to_keyword(ident: &str) -> Option<SyntaxKind> { | |||
223 | "super" => Some(SUPER_KW), | 233 | "super" => Some(SUPER_KW), |
224 | "in" => Some(IN_KW), | 234 | "in" => Some(IN_KW), |
225 | "where" => Some(WHERE_KW), | 235 | "where" => Some(WHERE_KW), |
236 | "for" => Some(FOR_KW), | ||
237 | "loop" => Some(LOOP_KW), | ||
238 | "while" => Some(WHILE_KW), | ||
239 | "if" => Some(IF_KW), | ||
240 | "match" => Some(MATCH_KW), | ||
226 | _ => None, | 241 | _ => None, |
227 | } | 242 | } |
228 | } | 243 | } |