diff options
author | Aleksey Kladov <[email protected]> | 2018-09-29 12:53:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-29 12:53:23 +0100 |
commit | baaf027da04445c18e6d50b0956b234d33c1a2f1 (patch) | |
tree | c87835c5733b269c7bb2ed101dab00151f1fedd3 /crates/ra_syntax/tests/data/parser/inline | |
parent | 5e1d109cbb73a66c8bd3282973b8ebeb74894e4e (diff) |
support 2018 paths
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0112_crate_path.rs | 1 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0112_crate_path.txt | 15 |
2 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | ROOT@[0; 16) | ||
2 | USE_ITEM@[0; 15) | ||
3 | USE_KW@[0; 3) | ||
4 | WHITESPACE@[3; 4) | ||
5 | USE_TREE@[4; 14) | ||
6 | PATH@[4; 14) | ||
7 | PATH@[4; 9) | ||
8 | PATH_SEGMENT@[4; 9) | ||
9 | CRATE_KW@[4; 9) | ||
10 | COLONCOLON@[9; 11) | ||
11 | PATH_SEGMENT@[11; 14) | ||
12 | NAME_REF@[11; 14) | ||
13 | IDENT@[11; 14) "foo" | ||
14 | SEMI@[14; 15) | ||
15 | WHITESPACE@[15; 16) | ||