diff options
author | Florian Diebold <[email protected]> | 2019-02-01 23:33:54 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-04 20:49:34 +0000 |
commit | e163c908acff9260eff347541f0f3f57db551622 (patch) | |
tree | 1749bf4fa26b02d97d058c985083bd388ad71b91 /crates/ra_syntax/src/grammar.ron | |
parent | 77a824c6a0db6ac2548841d290d5d61d1d23295c (diff) |
Add AST for extern crate
Also change it to parse the crate name as a NAME_REF, not a NAME.
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index a2ccd7cb9..2ed1fd1b8 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -601,7 +601,9 @@ Grammar( | |||
601 | "UseTreeList": ( | 601 | "UseTreeList": ( |
602 | collections: [["use_trees", "UseTree"]] | 602 | collections: [["use_trees", "UseTree"]] |
603 | ), | 603 | ), |
604 | "ExternCrateItem": (), | 604 | "ExternCrateItem": ( |
605 | options: ["NameRef", "Alias"], | ||
606 | ), | ||
605 | "ArgList": ( | 607 | "ArgList": ( |
606 | collections: [ | 608 | collections: [ |
607 | ["args", "Expr"] | 609 | ["args", "Expr"] |