aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r--crates/libsyntax2/src/grammar/items/mod.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs
index 6f401ea1b..c3893937a 100644
--- a/crates/libsyntax2/src/grammar/items/mod.rs
+++ b/crates/libsyntax2/src/grammar/items/mod.rs
@@ -108,7 +108,7 @@ pub(super) fn maybe_item(p: &mut Parser) -> MaybeItem {
108 // unsafe fn foo() {} 108 // unsafe fn foo() {}
109 FN_KW => { 109 FN_KW => {
110 function(p); 110 function(p);
111 FUNCTION 111 FN_DEF
112 } 112 }
113 113
114 // test unsafe_trait 114 // test unsafe_trait
@@ -121,7 +121,7 @@ pub(super) fn maybe_item(p: &mut Parser) -> MaybeItem {
121 // unsafe auto trait T {} 121 // unsafe auto trait T {}
122 TRAIT_KW => { 122 TRAIT_KW => {
123 traits::trait_item(p); 123 traits::trait_item(p);
124 TRAIT 124 TRAIT_DEF
125 } 125 }
126 126
127 // test unsafe_impl 127 // test unsafe_impl
@@ -157,7 +157,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
157 } 157 }
158 TYPE_KW => { 158 TYPE_KW => {
159 type_item(p); 159 type_item(p);
160 TYPE_ITEM 160 TYPE_DEF
161 } 161 }
162 MOD_KW => { 162 MOD_KW => {
163 mod_item(p); 163 mod_item(p);
@@ -171,11 +171,11 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
171 consider removing this semicolon" 171 consider removing this semicolon"
172 ); 172 );
173 } 173 }
174 STRUCT 174 STRUCT_DEF
175 } 175 }
176 ENUM_KW => { 176 ENUM_KW => {
177 structs::enum_item(p); 177 structs::enum_item(p);
178 ENUM 178 ENUM_DEF
179 } 179 }
180 USE_KW => { 180 USE_KW => {
181 use_item::use_item(p); 181 use_item::use_item(p);
@@ -183,11 +183,11 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
183 } 183 }
184 CONST_KW if (la == IDENT || la == MUT_KW) => { 184 CONST_KW if (la == IDENT || la == MUT_KW) => {
185 consts::const_item(p); 185 consts::const_item(p);
186 CONST_ITEM 186 CONST_DEF
187 } 187 }
188 STATIC_KW => { 188 STATIC_KW => {
189 consts::static_item(p); 189 consts::static_item(p);
190 STATIC_ITEM 190 STATIC_DEF
191 } 191 }
192 // test extern_block 192 // test extern_block
193 // extern {} 193 // extern {}