diff options
author | Aleksey Kladov <[email protected]> | 2018-08-13 16:23:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-13 16:24:17 +0100 |
commit | 9149fd2c0ca3d23719082852a2cddd8ba5804ce6 (patch) | |
tree | f15d90dc80b6fd4d8e1bb966a171cb06a64cf9c0 /crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt | |
parent | d1eceefeb8b683da3f64b89446f04f01803962e1 (diff) |
Fix some parser bugs
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt index c6ae68103..64aa07801 100644 --- a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt +++ b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt | |||
@@ -1,20 +1,16 @@ | |||
1 | FILE@[0; 12) | 1 | FILE@[0; 12) |
2 | USE_ITEM@[0; 9) | 2 | USE_ITEM@[0; 12) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
5 | USE_TREE@[4; 9) | 5 | USE_TREE@[4; 11) |
6 | PATH@[4; 9) | 6 | PATH@[4; 11) |
7 | PATH@[4; 7) | 7 | PATH@[4; 7) |
8 | PATH_SEGMENT@[4; 7) | 8 | PATH_SEGMENT@[4; 7) |
9 | NAME_REF@[4; 7) | 9 | NAME_REF@[4; 7) |
10 | IDENT@[4; 7) "foo" | 10 | IDENT@[4; 7) "foo" |
11 | COLONCOLON@[7; 9) | 11 | COLONCOLON@[7; 9) |
12 | err: `expected identifier` | 12 | err: `expected identifier` |
13 | err: `expected SEMI` | 13 | PATH_SEGMENT@[9; 11) |
14 | err: `expected an item` | 14 | ERROR@[9; 11) |
15 | PATH_SEGMENT@[9; 9) | 15 | INT_NUMBER@[9; 11) "92" |
16 | ERROR@[9; 11) | ||
17 | INT_NUMBER@[9; 11) "92" | ||
18 | err: `expected an item` | ||
19 | ERROR@[11; 12) | ||
20 | SEMI@[11; 12) | 16 | SEMI@[11; 12) |