From e163c908acff9260eff347541f0f3f57db551622 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 2 Feb 2019 00:33:54 +0100 Subject: Add AST for extern crate Also change it to parse the crate name as a NAME_REF, not a NAME. --- crates/ra_syntax/tests/data/parser/inline/ok/0060_extern_crate.txt | 2 +- crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/tests/data/parser') diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0060_extern_crate.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0060_extern_crate.txt index 7ffdc7fbd..a7b428787 100644 --- a/crates/ra_syntax/tests/data/parser/inline/ok/0060_extern_crate.txt +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0060_extern_crate.txt @@ -4,7 +4,7 @@ SOURCE_FILE@[0; 18) WHITESPACE@[6; 7) CRATE_KW@[7; 12) WHITESPACE@[12; 13) - NAME@[13; 16) + NAME_REF@[13; 16) IDENT@[13; 16) "foo" SEMI@[16; 17) WHITESPACE@[17; 18) diff --git a/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt index 5adf3f276..5558d952e 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt +++ b/crates/ra_syntax/tests/data/parser/ok/0007_extern_crate.txt @@ -4,7 +4,7 @@ SOURCE_FILE@[0; 43) WHITESPACE@[6; 7) CRATE_KW@[7; 12) WHITESPACE@[12; 13) - NAME@[13; 16) + NAME_REF@[13; 16) IDENT@[13; 16) "foo" SEMI@[16; 17) WHITESPACE@[17; 18) @@ -13,7 +13,7 @@ SOURCE_FILE@[0; 43) WHITESPACE@[24; 25) CRATE_KW@[25; 30) WHITESPACE@[30; 31) - NAME@[31; 34) + NAME_REF@[31; 34) IDENT@[31; 34) "foo" WHITESPACE@[34; 35) ALIAS@[35; 41) -- cgit v1.2.3