From baaf027da04445c18e6d50b0956b234d33c1a2f1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 29 Sep 2018 14:53:23 +0300 Subject: support 2018 paths --- .../ra_syntax/tests/data/parser/inline/0112_crate_path.rs | 1 + .../tests/data/parser/inline/0112_crate_path.txt | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 crates/ra_syntax/tests/data/parser/inline/0112_crate_path.rs create mode 100644 crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt (limited to 'crates/ra_syntax/tests/data') diff --git a/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.rs b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.rs new file mode 100644 index 000000000..1bbb5930b --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.rs @@ -0,0 +1 @@ +use crate::foo; diff --git a/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt new file mode 100644 index 000000000..4c871ccdd --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt @@ -0,0 +1,15 @@ +ROOT@[0; 16) + USE_ITEM@[0; 15) + USE_KW@[0; 3) + WHITESPACE@[3; 4) + USE_TREE@[4; 14) + PATH@[4; 14) + PATH@[4; 9) + PATH_SEGMENT@[4; 9) + CRATE_KW@[4; 9) + COLONCOLON@[9; 11) + PATH_SEGMENT@[11; 14) + NAME_REF@[11; 14) + IDENT@[11; 14) "foo" + SEMI@[14; 15) + WHITESPACE@[15; 16) -- cgit v1.2.3