diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
commit | 0194adb651257b69fdf04423b22c69db09fc489c (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt | |
parent | bf3030404ef8a161334326bad706f60ee8838f63 (diff) | |
parent | 459241f272748ff2e57b2c7e84f5a04f78d67edb (diff) |
Merge #1585
1585: move syntax tests to unit tests r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt b/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt new file mode 100644 index 000000000..f2515faa7 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt | |||
@@ -0,0 +1,43 @@ | |||
1 | SOURCE_FILE@[0; 94) | ||
2 | FN_DEF@[0; 55) | ||
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; 55) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | MACRO_CALL@[16; 49) | ||
15 | PATH@[16; 19) | ||
16 | PATH_SEGMENT@[16; 19) | ||
17 | NAME_REF@[16; 19) | ||
18 | IDENT@[16; 19) "foo" | ||
19 | EXCL@[19; 20) "!" | ||
20 | WHITESPACE@[20; 21) " " | ||
21 | TOKEN_TREE@[21; 49) | ||
22 | L_PAREN@[21; 22) "(" | ||
23 | WHITESPACE@[22; 31) "\n " | ||
24 | IDENT@[31; 34) "bar" | ||
25 | COMMA@[34; 35) "," | ||
26 | WHITESPACE@[35; 36) " " | ||
27 | STRING@[36; 41) "\"baz\"" | ||
28 | COMMA@[41; 42) "," | ||
29 | WHITESPACE@[42; 43) " " | ||
30 | INT_NUMBER@[43; 44) "1" | ||
31 | COMMA@[44; 45) "," | ||
32 | WHITESPACE@[45; 46) " " | ||
33 | FLOAT_NUMBER@[46; 49) "2.0" | ||
34 | WHITESPACE@[49; 54) "\n " | ||
35 | R_CURLY@[54; 55) "}" | ||
36 | WHITESPACE@[55; 56) " " | ||
37 | COMMENT@[56; 91) "//~ ERROR incorrect c ..." | ||
38 | WHITESPACE@[91; 92) "\n" | ||
39 | ERROR@[92; 93) | ||
40 | R_CURLY@[92; 93) "}" | ||
41 | WHITESPACE@[93; 94) "\n" | ||
42 | error 49: unmatched `}` | ||
43 | error 92: unmatched `}` | ||