aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar.ron
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r--crates/libsyntax2/src/grammar.ron21
1 files changed, 15 insertions, 6 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index 52764e664..f4792df1d 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -149,6 +149,7 @@ Grammar(
149 "PLACEHOLDER_PAT", 149 "PLACEHOLDER_PAT",
150 "PATH_PAT", 150 "PATH_PAT",
151 "STRUCT_PAT", 151 "STRUCT_PAT",
152 "FIELD_PAT_LIST",
152 "TUPLE_STRUCT_PAT", 153 "TUPLE_STRUCT_PAT",
153 "TUPLE_PAT", 154 "TUPLE_PAT",
154 "SLICE_PAT", 155 "SLICE_PAT",
@@ -170,10 +171,12 @@ Grammar(
170 "BLOCK_EXPR", 171 "BLOCK_EXPR",
171 "RETURN_EXPR", 172 "RETURN_EXPR",
172 "MATCH_EXPR", 173 "MATCH_EXPR",
174 "MATCH_ARM_LIST",
173 "MATCH_ARM", 175 "MATCH_ARM",
174 "MATCH_GUARD", 176 "MATCH_GUARD",
175 "STRUCT_LIT", 177 "STRUCT_LIT",
176 "STRUCT_LIT_FIELD", 178 "NAMED_FIELD_LIST",
179 "NAMED_FIELD",
177 180
178 // postfix 181 // postfix
179 "CALL_EXPR", 182 "CALL_EXPR",
@@ -190,14 +193,20 @@ Grammar(
190 "RANGE_EXPR", // just weird 193 "RANGE_EXPR", // just weird
191 "BIN_EXPR", 194 "BIN_EXPR",
192 195
193 196 "BLOCK",
194 "EXTERN_BLOCK_EXPR", 197 "EXTERN_BLOCK",
198 "EXTERN_ITEM_LIST",
195 "ENUM_VARIANT", 199 "ENUM_VARIANT",
196 "NAMED_FIELD", 200 "NAMED_FIELD_DEF_LIST",
201 "NAMED_FIELD_DEF",
202 "POS_FIELD_LIST",
197 "POS_FIELD", 203 "POS_FIELD",
204 "ENUM_VARIANT_LIST",
205 "ITEM_LIST",
198 "ATTR", 206 "ATTR",
199 "META_ITEM", // not an item actually 207 "META_ITEM", // not an item actually
200 "USE_TREE", 208 "USE_TREE",
209 "USE_TREE_LIST",
201 "PATH", 210 "PATH",
202 "PATH_SEGMENT", 211 "PATH_SEGMENT",
203 "LITERAL", 212 "LITERAL",
@@ -244,10 +253,10 @@ Grammar(
244 "AttrsOwner", 253 "AttrsOwner",
245 ], 254 ],
246 collections: [ 255 collections: [
247 ["fields", "NamedField"] 256 ["fields", "NamedFieldDef"]
248 ] 257 ]
249 ), 258 ),
250 "NamedField": ( traits: ["NameOwner", "AttrsOwner"] ), 259 "NamedFieldDef": ( traits: ["NameOwner", "AttrsOwner"] ),
251 "EnumDef": ( traits: [ 260 "EnumDef": ( traits: [
252 "NameOwner", 261 "NameOwner",
253 "TypeParamsOwner", 262 "TypeParamsOwner",