diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 2ed165c52..53cd2118f 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -116,7 +116,7 @@ Grammar( | |||
116 | "SHEBANG", | 116 | "SHEBANG", |
117 | ], | 117 | ], |
118 | nodes: [ | 118 | nodes: [ |
119 | "ROOT", | 119 | "SOURCE_FILE", |
120 | 120 | ||
121 | "STRUCT_DEF", | 121 | "STRUCT_DEF", |
122 | "ENUM_DEF", | 122 | "ENUM_DEF", |
@@ -239,7 +239,7 @@ Grammar( | |||
239 | "ARG_LIST", | 239 | "ARG_LIST", |
240 | ], | 240 | ], |
241 | ast: { | 241 | ast: { |
242 | "Root": ( | 242 | "SourceFile": ( |
243 | traits: [ "ModuleItemOwner", "FnDefOwner" ], | 243 | traits: [ "ModuleItemOwner", "FnDefOwner" ], |
244 | collections: [ | 244 | collections: [ |
245 | ["modules", "Module"], | 245 | ["modules", "Module"], |
@@ -260,6 +260,7 @@ Grammar( | |||
260 | "NameOwner", | 260 | "NameOwner", |
261 | "TypeParamsOwner", | 261 | "TypeParamsOwner", |
262 | "AttrsOwner", | 262 | "AttrsOwner", |
263 | "DocCommentsOwner" | ||
263 | ], | 264 | ], |
264 | collections: [ | 265 | collections: [ |
265 | ["fields", "NamedFieldDef"] | 266 | ["fields", "NamedFieldDef"] |
@@ -270,10 +271,11 @@ Grammar( | |||
270 | "NameOwner", | 271 | "NameOwner", |
271 | "TypeParamsOwner", | 272 | "TypeParamsOwner", |
272 | "AttrsOwner", | 273 | "AttrsOwner", |
274 | "DocCommentsOwner" | ||
273 | ] ), | 275 | ] ), |
274 | "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 276 | "TraitDef": ( traits: ["NameOwner", "AttrsOwner", "DocCommentsOwner"] ), |
275 | "Module": ( | 277 | "Module": ( |
276 | traits: ["NameOwner", "AttrsOwner" ], | 278 | traits: ["NameOwner", "AttrsOwner", "DocCommentsOwner" ], |
277 | options: [ "ItemList" ] | 279 | options: [ "ItemList" ] |
278 | ), | 280 | ), |
279 | "ItemList": ( | 281 | "ItemList": ( |
@@ -283,16 +285,19 @@ Grammar( | |||
283 | "NameOwner", | 285 | "NameOwner", |
284 | "TypeParamsOwner", | 286 | "TypeParamsOwner", |
285 | "AttrsOwner", | 287 | "AttrsOwner", |
288 | "DocCommentsOwner" | ||
286 | ] ), | 289 | ] ), |
287 | "StaticDef": ( traits: [ | 290 | "StaticDef": ( traits: [ |
288 | "NameOwner", | 291 | "NameOwner", |
289 | "TypeParamsOwner", | 292 | "TypeParamsOwner", |
290 | "AttrsOwner", | 293 | "AttrsOwner", |
294 | "DocCommentsOwner" | ||
291 | ] ), | 295 | ] ), |
292 | "TypeDef": ( traits: [ | 296 | "TypeDef": ( traits: [ |
293 | "NameOwner", | 297 | "NameOwner", |
294 | "TypeParamsOwner", | 298 | "TypeParamsOwner", |
295 | "AttrsOwner", | 299 | "AttrsOwner", |
300 | "DocCommentsOwner" | ||
296 | ] ), | 301 | ] ), |
297 | "ImplItem": (), | 302 | "ImplItem": (), |
298 | 303 | ||
@@ -406,6 +411,9 @@ Grammar( | |||
406 | "PrefixExpr": (), | 411 | "PrefixExpr": (), |
407 | "RangeExpr": (), | 412 | "RangeExpr": (), |
408 | "BinExpr": (), | 413 | "BinExpr": (), |
414 | "String": (), | ||
415 | "Byte": (), | ||
416 | "ByteString": (), | ||
409 | "Char": (), | 417 | "Char": (), |
410 | "Literal": (), | 418 | "Literal": (), |
411 | 419 | ||