diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err')
3 files changed, 35 insertions, 79 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt index 76d186a3c..84867026f 100644 --- a/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt +++ b/crates/ra_syntax/tests/data/parser/err/0002_duplicate_shebang.txt | |||
@@ -1,7 +1,39 @@ | |||
1 | SOURCE_FILE@[0; 42) | 1 | SOURCE_FILE@[0; 42) |
2 | SHEBANG@[0; 20) "#!/use/bin/env rusti" | 2 | SHEBANG@[0; 20) "#!/use/bin/env rusti" |
3 | WHITESPACE@[20; 21) "\n" | 3 | WHITESPACE@[20; 21) "\n" |
4 | ERROR@[21; 41) | 4 | ATTR@[21; 23) |
5 | SHEBANG@[21; 41) "#!/use/bin/env rusti" | 5 | POUND@[21; 22) "#" |
6 | EXCL@[22; 23) "!" | ||
7 | ERROR@[23; 24) | ||
8 | SLASH@[23; 24) "/" | ||
9 | USE_ITEM@[24; 28) | ||
10 | USE_KW@[24; 27) "use" | ||
11 | ERROR@[27; 28) | ||
12 | SLASH@[27; 28) "/" | ||
13 | MACRO_CALL@[28; 31) | ||
14 | PATH@[28; 31) | ||
15 | PATH_SEGMENT@[28; 31) | ||
16 | NAME_REF@[28; 31) | ||
17 | IDENT@[28; 31) "bin" | ||
18 | ERROR@[31; 32) | ||
19 | SLASH@[31; 32) "/" | ||
20 | MACRO_CALL@[32; 41) | ||
21 | PATH@[32; 35) | ||
22 | PATH_SEGMENT@[32; 35) | ||
23 | NAME_REF@[32; 35) | ||
24 | IDENT@[32; 35) "env" | ||
25 | WHITESPACE@[35; 36) " " | ||
26 | NAME@[36; 41) | ||
27 | IDENT@[36; 41) "rusti" | ||
6 | WHITESPACE@[41; 42) "\n" | 28 | WHITESPACE@[41; 42) "\n" |
7 | error 21: expected an item | 29 | error 23: expected `[` |
30 | error 23: expected an item | ||
31 | error 27: expected one of `*`, `::`, `{`, `self`, `super` or an indentifier | ||
32 | error 28: expected SEMI | ||
33 | error 31: expected EXCL | ||
34 | error 31: expected `{`, `[`, `(` | ||
35 | error 31: expected SEMI | ||
36 | error 31: expected an item | ||
37 | error 35: expected EXCL | ||
38 | error 41: expected `{`, `[`, `(` | ||
39 | error 41: expected SEMI | ||
diff --git a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.rs b/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.rs deleted file mode 100644 index 261aad1fb..000000000 --- a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.rs +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | fn main() { | ||
2 | let _ = 'c'u32; | ||
3 | let _ = "string"invalid; | ||
4 | let _ = b'b'_suff; | ||
5 | let _ = b"bs"invalid; | ||
6 | } | ||
diff --git a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt b/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt deleted file mode 100644 index b0acfa5d2..000000000 --- a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 112) | ||
2 | FN_DEF@[0; 111) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK@[10; 111) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | LET_STMT@[16; 27) | ||
15 | LET_KW@[16; 19) "let" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | PLACEHOLDER_PAT@[20; 21) | ||
18 | UNDERSCORE@[20; 21) "_" | ||
19 | WHITESPACE@[21; 22) " " | ||
20 | EQ@[22; 23) "=" | ||
21 | WHITESPACE@[23; 24) " " | ||
22 | LITERAL@[24; 27) | ||
23 | CHAR@[24; 27) "\'c\'" | ||
24 | EXPR_STMT@[27; 31) | ||
25 | PATH_EXPR@[27; 30) | ||
26 | PATH@[27; 30) | ||
27 | PATH_SEGMENT@[27; 30) | ||
28 | NAME_REF@[27; 30) | ||
29 | IDENT@[27; 30) "u32" | ||
30 | SEMI@[30; 31) ";" | ||
31 | WHITESPACE@[31; 36) "\n " | ||
32 | LET_STMT@[36; 60) | ||
33 | LET_KW@[36; 39) "let" | ||
34 | WHITESPACE@[39; 40) " " | ||
35 | PLACEHOLDER_PAT@[40; 41) | ||
36 | UNDERSCORE@[40; 41) "_" | ||
37 | WHITESPACE@[41; 42) " " | ||
38 | EQ@[42; 43) "=" | ||
39 | WHITESPACE@[43; 44) " " | ||
40 | LITERAL@[44; 59) | ||
41 | STRING@[44; 59) "\"string\"invalid" | ||
42 | SEMI@[59; 60) ";" | ||
43 | WHITESPACE@[60; 65) "\n " | ||
44 | LET_STMT@[65; 83) | ||
45 | LET_KW@[65; 68) "let" | ||
46 | WHITESPACE@[68; 69) " " | ||
47 | PLACEHOLDER_PAT@[69; 70) | ||
48 | UNDERSCORE@[69; 70) "_" | ||
49 | WHITESPACE@[70; 71) " " | ||
50 | EQ@[71; 72) "=" | ||
51 | WHITESPACE@[72; 73) " " | ||
52 | LITERAL@[73; 82) | ||
53 | BYTE@[73; 82) "b\'b\'_suff" | ||
54 | SEMI@[82; 83) ";" | ||
55 | WHITESPACE@[83; 88) "\n " | ||
56 | LET_STMT@[88; 109) | ||
57 | LET_KW@[88; 91) "let" | ||
58 | WHITESPACE@[91; 92) " " | ||
59 | PLACEHOLDER_PAT@[92; 93) | ||
60 | UNDERSCORE@[92; 93) "_" | ||
61 | WHITESPACE@[93; 94) " " | ||
62 | EQ@[94; 95) "=" | ||
63 | WHITESPACE@[95; 96) " " | ||
64 | LITERAL@[96; 108) | ||
65 | BYTE_STRING@[96; 108) "b\"bs\"invalid" | ||
66 | SEMI@[108; 109) ";" | ||
67 | WHITESPACE@[109; 110) "\n" | ||
68 | R_CURLY@[110; 111) "}" | ||
69 | WHITESPACE@[111; 112) "\n" | ||
70 | error 27: expected SEMI | ||