diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt b/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt new file mode 100644 index 000000000..857826037 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | SOURCE_FILE@[0; 40) | ||
2 | STRUCT_DEF@[0; 39) | ||
3 | STRUCT_KW@[0; 6) "struct" | ||
4 | WHITESPACE@[6; 7) " " | ||
5 | NAME@[7; 8) | ||
6 | IDENT@[7; 8) "S" | ||
7 | WHITESPACE@[8; 9) " " | ||
8 | NAMED_FIELD_DEF_LIST@[9; 39) | ||
9 | L_CURLY@[9; 10) "{" | ||
10 | WHITESPACE@[10; 15) "\n " | ||
11 | NAMED_FIELD_DEF@[15; 21) | ||
12 | NAME@[15; 16) | ||
13 | IDENT@[15; 16) "a" | ||
14 | COLON@[16; 17) ":" | ||
15 | WHITESPACE@[17; 18) " " | ||
16 | PATH_TYPE@[18; 21) | ||
17 | PATH@[18; 21) | ||
18 | PATH_SEGMENT@[18; 21) | ||
19 | NAME_REF@[18; 21) | ||
20 | IDENT@[18; 21) "i32" | ||
21 | COMMA@[21; 22) "," | ||
22 | WHITESPACE@[22; 27) "\n " | ||
23 | NAMED_FIELD_DEF@[27; 36) | ||
24 | NAME@[27; 28) | ||
25 | IDENT@[27; 28) "b" | ||
26 | COLON@[28; 29) ":" | ||
27 | WHITESPACE@[29; 30) " " | ||
28 | PATH_TYPE@[30; 36) | ||
29 | PATH@[30; 36) | ||
30 | PATH_SEGMENT@[30; 36) | ||
31 | NAME_REF@[30; 36) | ||
32 | IDENT@[30; 36) "String" | ||
33 | COMMA@[36; 37) "," | ||
34 | WHITESPACE@[37; 38) "\n" | ||
35 | R_CURLY@[38; 39) "}" | ||
36 | ERROR@[39; 40) | ||
37 | SEMI@[39; 40) ";" | ||
38 | error 39: expected item, found `;` | ||
39 | consider removing this semicolon | ||