aboutsummaryrefslogtreecommitdiff
path: root/src/syntax_kinds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax_kinds.rs')
-rw-r--r--src/syntax_kinds.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/syntax_kinds.rs b/src/syntax_kinds.rs
index 27bc1cafa..dc287f0f4 100644
--- a/src/syntax_kinds.rs
+++ b/src/syntax_kinds.rs
@@ -83,6 +83,7 @@ pub enum SyntaxKind {
83 STATIC_KW, 83 STATIC_KW,
84 MUT_KW, 84 MUT_KW,
85 UNSAFE_KW, 85 UNSAFE_KW,
86 TYPE_KW,
86 AUTO_KW, 87 AUTO_KW,
87 DEFAULT_KW, 88 DEFAULT_KW,
88 UNION_KW, 89 UNION_KW,
@@ -97,6 +98,7 @@ pub enum SyntaxKind {
97 CONST_ITEM, 98 CONST_ITEM,
98 TRAIT_ITEM, 99 TRAIT_ITEM,
99 IMPL_ITEM, 100 IMPL_ITEM,
101 TYPE_ITEM,
100 EXTERN_BLOCK, 102 EXTERN_BLOCK,
101 ENUM_VARIANT, 103 ENUM_VARIANT,
102 NAMED_FIELD, 104 NAMED_FIELD,
@@ -110,6 +112,7 @@ pub enum SyntaxKind {
110 ALIAS, 112 ALIAS,
111 VISIBILITY, 113 VISIBILITY,
112 TYPE_PARAM_LIST, 114 TYPE_PARAM_LIST,
115 WHERE_CLAUSE,
113 LIFETIME_PARAM, 116 LIFETIME_PARAM,
114 TYPE_PARAM, 117 TYPE_PARAM,
115 ABI, 118 ABI,
@@ -203,6 +206,7 @@ impl SyntaxKind {
203 STATIC_KW => &SyntaxInfo { name: "STATIC_KW" }, 206 STATIC_KW => &SyntaxInfo { name: "STATIC_KW" },
204 MUT_KW => &SyntaxInfo { name: "MUT_KW" }, 207 MUT_KW => &SyntaxInfo { name: "MUT_KW" },
205 UNSAFE_KW => &SyntaxInfo { name: "UNSAFE_KW" }, 208 UNSAFE_KW => &SyntaxInfo { name: "UNSAFE_KW" },
209 TYPE_KW => &SyntaxInfo { name: "TYPE_KW" },
206 AUTO_KW => &SyntaxInfo { name: "AUTO_KW" }, 210 AUTO_KW => &SyntaxInfo { name: "AUTO_KW" },
207 DEFAULT_KW => &SyntaxInfo { name: "DEFAULT_KW" }, 211 DEFAULT_KW => &SyntaxInfo { name: "DEFAULT_KW" },
208 UNION_KW => &SyntaxInfo { name: "UNION_KW" }, 212 UNION_KW => &SyntaxInfo { name: "UNION_KW" },
@@ -217,6 +221,7 @@ impl SyntaxKind {
217 CONST_ITEM => &SyntaxInfo { name: "CONST_ITEM" }, 221 CONST_ITEM => &SyntaxInfo { name: "CONST_ITEM" },
218 TRAIT_ITEM => &SyntaxInfo { name: "TRAIT_ITEM" }, 222 TRAIT_ITEM => &SyntaxInfo { name: "TRAIT_ITEM" },
219 IMPL_ITEM => &SyntaxInfo { name: "IMPL_ITEM" }, 223 IMPL_ITEM => &SyntaxInfo { name: "IMPL_ITEM" },
224 TYPE_ITEM => &SyntaxInfo { name: "TYPE_ITEM" },
220 EXTERN_BLOCK => &SyntaxInfo { name: "EXTERN_BLOCK" }, 225 EXTERN_BLOCK => &SyntaxInfo { name: "EXTERN_BLOCK" },
221 ENUM_VARIANT => &SyntaxInfo { name: "ENUM_VARIANT" }, 226 ENUM_VARIANT => &SyntaxInfo { name: "ENUM_VARIANT" },
222 NAMED_FIELD => &SyntaxInfo { name: "NAMED_FIELD" }, 227 NAMED_FIELD => &SyntaxInfo { name: "NAMED_FIELD" },
@@ -230,6 +235,7 @@ impl SyntaxKind {
230 ALIAS => &SyntaxInfo { name: "ALIAS" }, 235 ALIAS => &SyntaxInfo { name: "ALIAS" },
231 VISIBILITY => &SyntaxInfo { name: "VISIBILITY" }, 236 VISIBILITY => &SyntaxInfo { name: "VISIBILITY" },
232 TYPE_PARAM_LIST => &SyntaxInfo { name: "TYPE_PARAM_LIST" }, 237 TYPE_PARAM_LIST => &SyntaxInfo { name: "TYPE_PARAM_LIST" },
238 WHERE_CLAUSE => &SyntaxInfo { name: "WHERE_CLAUSE" },
233 LIFETIME_PARAM => &SyntaxInfo { name: "LIFETIME_PARAM" }, 239 LIFETIME_PARAM => &SyntaxInfo { name: "LIFETIME_PARAM" },
234 TYPE_PARAM => &SyntaxInfo { name: "TYPE_PARAM" }, 240 TYPE_PARAM => &SyntaxInfo { name: "TYPE_PARAM" },
235 ABI => &SyntaxInfo { name: "ABI" }, 241 ABI => &SyntaxInfo { name: "ABI" },
@@ -268,6 +274,7 @@ pub(crate) fn ident_to_keyword(ident: &str) -> Option<SyntaxKind> {
268 "static" => Some(STATIC_KW), 274 "static" => Some(STATIC_KW),
269 "mut" => Some(MUT_KW), 275 "mut" => Some(MUT_KW),
270 "unsafe" => Some(UNSAFE_KW), 276 "unsafe" => Some(UNSAFE_KW),
277 "type" => Some(TYPE_KW),
271 _ => None, 278 _ => None,
272 } 279 }
273} 280}