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.ron20
1 files changed, 11 insertions, 9 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index aa28ab922..4e523da9a 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -221,24 +221,26 @@ Grammar(
221 ["functions", "FnDef"] 221 ["functions", "FnDef"]
222 ] 222 ]
223 ), 223 ),
224 "FnDef": ( traits: ["NameOwner"] ), 224 "FnDef": ( traits: ["NameOwner", "AttrsOwner"] ),
225 "StructDef": ( 225 "StructDef": (
226 traits: ["NameOwner"], 226 traits: ["NameOwner", "AttrsOwner"],
227 collections: [ 227 collections: [
228 ["fields", "NamedField"] 228 ["fields", "NamedField"]
229 ] 229 ]
230 ), 230 ),
231 "NamedField": ( traits: ["NameOwner"] ), 231 "NamedField": ( traits: ["NameOwner", "AttrsOwner"] ),
232 "EnumDef": ( traits: ["NameOwner"] ), 232 "EnumDef": ( traits: ["NameOwner", "AttrsOwner"] ),
233 "TraitDef": ( traits: ["NameOwner"] ), 233 "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ),
234 "Module": ( traits: ["NameOwner"] ), 234 "Module": ( traits: ["NameOwner", "AttrsOwner"] ),
235 "ConstDef": ( traits: ["NameOwner"] ), 235 "ConstDef": ( traits: ["NameOwner", "AttrsOwner"] ),
236 "StaticDef": ( traits: ["NameOwner"] ), 236 "StaticDef": ( traits: ["NameOwner", "AttrsOwner"] ),
237 "TypeDef": ( traits: ["NameOwner"] ), 237 "TypeDef": ( traits: ["NameOwner", "AttrsOwner"] ),
238 "ImplItem": (), 238 "ImplItem": (),
239 239
240 "Name": (), 240 "Name": (),
241 "NameRef": (), 241 "NameRef": (),
242 "Attr": ( options: [ ["value", "TokenTree"] ] ),
243 "TokenTree": (),
242 244
243 "ParenType": (), 245 "ParenType": (),
244 "TupleType": (), 246 "TupleType": (),