diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
commit | 7a1cae59acf72f821343b2ba10ef69fb92a5b952 (patch) | |
tree | 26e606ccd132a24e9bc89cf174e4adadf60c5992 /crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt | |
parent | b0d84cb8faefedde7ace4ff152a2a13408e79e5d (diff) | |
parent | 80a17251473bd6213a4c8a51ea7f732394d173c5 (diff) |
Merge #1337
1337: Move syntax errors our of syntax tree r=matklad a=matklad
I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side?
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt index 94066ed05..ff59f5d71 100644 --- a/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/crates/ra_syntax/tests/data/parser/err/0007_stray_curly_in_file.txt | |||
@@ -1,7 +1,6 @@ | |||
1 | SOURCE_FILE@[0; 31) | 1 | SOURCE_FILE@[0; 31) |
2 | ERROR@[0; 1) | 2 | ERROR@[0; 1) |
3 | R_CURLY@[0; 1) "}" | 3 | R_CURLY@[0; 1) "}" |
4 | err: `unmatched `}`` | ||
5 | WHITESPACE@[1; 3) "\n\n" | 4 | WHITESPACE@[1; 3) "\n\n" |
6 | STRUCT_DEF@[3; 12) | 5 | STRUCT_DEF@[3; 12) |
7 | STRUCT_KW@[3; 9) "struct" | 6 | STRUCT_KW@[3; 9) "struct" |
@@ -10,7 +9,6 @@ SOURCE_FILE@[0; 31) | |||
10 | IDENT@[10; 11) "S" | 9 | IDENT@[10; 11) "S" |
11 | SEMI@[11; 12) ";" | 10 | SEMI@[11; 12) ";" |
12 | WHITESPACE@[12; 14) "\n\n" | 11 | WHITESPACE@[12; 14) "\n\n" |
13 | err: `unmatched `}`` | ||
14 | ERROR@[14; 15) | 12 | ERROR@[14; 15) |
15 | R_CURLY@[14; 15) "}" | 13 | R_CURLY@[14; 15) "}" |
16 | WHITESPACE@[15; 17) "\n\n" | 14 | WHITESPACE@[15; 17) "\n\n" |
@@ -26,7 +24,9 @@ SOURCE_FILE@[0; 31) | |||
26 | L_CURLY@[25; 26) "{" | 24 | L_CURLY@[25; 26) "{" |
27 | R_CURLY@[26; 27) "}" | 25 | R_CURLY@[26; 27) "}" |
28 | WHITESPACE@[27; 29) "\n\n" | 26 | WHITESPACE@[27; 29) "\n\n" |
29 | err: `unmatched `}`` | ||
30 | ERROR@[29; 30) | 27 | ERROR@[29; 30) |
31 | R_CURLY@[29; 30) "}" | 28 | R_CURLY@[29; 30) "}" |
32 | WHITESPACE@[30; 31) "\n" | 29 | WHITESPACE@[30; 31) "\n" |
30 | err: `unmatched `}`` | ||
31 | err: `unmatched `}`` | ||
32 | err: `unmatched `}`` | ||