diff options
author | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
commit | da091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch) | |
tree | f97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt | |
parent | ec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (diff) |
Migrate tests .txt -> .rast
The sytax tree output files now use .rast extension
(rust-analyzer syntax tree or rust abstract syntax tree
(whatever)).
This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration
that supplies nice syntax highlighting for .rast files.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt b/crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt deleted file mode 100644 index 98248227d..000000000 --- a/crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 95) | ||
2 | FN_DEF@[0; 12) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 12) | ||
12 | BLOCK@[9; 12) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 11) "\n" | ||
15 | R_CURLY@[11; 12) "}" | ||
16 | WHITESPACE@[12; 14) "\n\n" | ||
17 | MACRO_CALL@[14; 19) | ||
18 | PATH@[14; 17) | ||
19 | PATH_SEGMENT@[14; 17) | ||
20 | NAME_REF@[14; 17) | ||
21 | IDENT@[14; 17) "bar" | ||
22 | TOKEN_TREE@[17; 19) | ||
23 | L_PAREN@[17; 18) "(" | ||
24 | R_PAREN@[18; 19) ")" | ||
25 | WHITESPACE@[19; 20) " " | ||
26 | ERROR@[20; 80) | ||
27 | L_CURLY@[20; 21) "{" | ||
28 | WHITESPACE@[21; 26) "\n " | ||
29 | IF_EXPR@[26; 78) | ||
30 | IF_KW@[26; 28) "if" | ||
31 | WHITESPACE@[28; 29) " " | ||
32 | CONDITION@[29; 33) | ||
33 | LITERAL@[29; 33) | ||
34 | TRUE_KW@[29; 33) "true" | ||
35 | WHITESPACE@[33; 34) " " | ||
36 | BLOCK_EXPR@[34; 51) | ||
37 | BLOCK@[34; 51) | ||
38 | L_CURLY@[34; 35) "{" | ||
39 | WHITESPACE@[35; 44) "\n " | ||
40 | LITERAL@[44; 45) | ||
41 | INT_NUMBER@[44; 45) "1" | ||
42 | WHITESPACE@[45; 50) "\n " | ||
43 | R_CURLY@[50; 51) "}" | ||
44 | WHITESPACE@[51; 52) " " | ||
45 | ELSE_KW@[52; 56) "else" | ||
46 | WHITESPACE@[56; 57) " " | ||
47 | BLOCK_EXPR@[57; 78) | ||
48 | BLOCK@[57; 78) | ||
49 | L_CURLY@[57; 58) "{" | ||
50 | WHITESPACE@[58; 67) "\n " | ||
51 | BIN_EXPR@[67; 72) | ||
52 | LITERAL@[67; 68) | ||
53 | INT_NUMBER@[67; 68) "2" | ||
54 | WHITESPACE@[68; 69) " " | ||
55 | PLUS@[69; 70) "+" | ||
56 | WHITESPACE@[70; 71) " " | ||
57 | LITERAL@[71; 72) | ||
58 | INT_NUMBER@[71; 72) "3" | ||
59 | WHITESPACE@[72; 77) "\n " | ||
60 | R_CURLY@[77; 78) "}" | ||
61 | WHITESPACE@[78; 79) "\n" | ||
62 | R_CURLY@[79; 80) "}" | ||
63 | WHITESPACE@[80; 82) "\n\n" | ||
64 | FN_DEF@[82; 94) | ||
65 | FN_KW@[82; 84) "fn" | ||
66 | WHITESPACE@[84; 85) " " | ||
67 | NAME@[85; 88) | ||
68 | IDENT@[85; 88) "baz" | ||
69 | PARAM_LIST@[88; 90) | ||
70 | L_PAREN@[88; 89) "(" | ||
71 | R_PAREN@[89; 90) ")" | ||
72 | WHITESPACE@[90; 91) " " | ||
73 | BLOCK_EXPR@[91; 94) | ||
74 | BLOCK@[91; 94) | ||
75 | L_CURLY@[91; 92) "{" | ||
76 | WHITESPACE@[92; 93) "\n" | ||
77 | R_CURLY@[93; 94) "}" | ||
78 | WHITESPACE@[94; 95) "\n" | ||
79 | error [17; 17): expected EXCL | ||
80 | error [19; 19): expected SEMI | ||
81 | error [20; 20): expected an item | ||