diff options
author | Aleksey Kladov <[email protected]> | 2018-01-08 18:57:19 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-08 18:57:19 +0000 |
commit | b61617f752668d1425133d0bf32d62dd1135c66a (patch) | |
tree | fcebd2559edc831d0f9d375d90e85a4252b4c6fd /tests/data | |
parent | ea186fe2c073dfd56f834068ee928a9c875b0279 (diff) |
G: special-case C++ semicolon
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/parser/err/0003_C++_semicolon.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/err/0003_C++_semicolon.txt | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/data/parser/err/0003_C++_semicolon.rs b/tests/data/parser/err/0003_C++_semicolon.rs new file mode 100644 index 000000000..009312270 --- /dev/null +++ b/tests/data/parser/err/0003_C++_semicolon.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | struct S { | ||
2 | a: i32, | ||
3 | b: String, | ||
4 | }; \ No newline at end of file | ||
diff --git a/tests/data/parser/err/0003_C++_semicolon.txt b/tests/data/parser/err/0003_C++_semicolon.txt new file mode 100644 index 000000000..9308bb330 --- /dev/null +++ b/tests/data/parser/err/0003_C++_semicolon.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | FILE@[0; 40) | ||
2 | STRUCT_ITEM@[0; 39) | ||
3 | STRUCT_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | IDENT@[7; 8) | ||
6 | WHITESPACE@[8; 9) | ||
7 | L_CURLY@[9; 10) | ||
8 | STRUCT_FIELD@[10; 21) | ||
9 | WHITESPACE@[10; 15) | ||
10 | IDENT@[15; 16) | ||
11 | COLON@[16; 17) | ||
12 | WHITESPACE@[17; 18) | ||
13 | IDENT@[18; 21) | ||
14 | COMMA@[21; 22) | ||
15 | STRUCT_FIELD@[22; 36) | ||
16 | WHITESPACE@[22; 27) | ||
17 | IDENT@[27; 28) | ||
18 | COLON@[28; 29) | ||
19 | WHITESPACE@[29; 30) | ||
20 | IDENT@[30; 36) | ||
21 | COMMA@[36; 37) | ||
22 | WHITESPACE@[37; 38) | ||
23 | R_CURLY@[38; 39) | ||
24 | ERROR@[39; 40) | ||
25 | err: `expected item, found `;` | ||
26 | consider removing this semicolon` | ||
27 | SEMI@[39; 40) | ||