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/0031_block_inner_attrs.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/0031_block_inner_attrs.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt b/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt index 80a973d4d..b4ec999b1 100644 --- a/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt +++ b/crates/ra_syntax/tests/data/parser/err/0031_block_inner_attrs.txt | |||
@@ -24,7 +24,6 @@ SOURCE_FILE@[0; 350) | |||
24 | BLOCK@[29; 128) | 24 | BLOCK@[29; 128) |
25 | L_CURLY@[29; 30) "{" | 25 | L_CURLY@[29; 30) "{" |
26 | WHITESPACE@[30; 39) "\n " | 26 | WHITESPACE@[30; 39) "\n " |
27 | err: `A block in this position cannot accept inner attributes` | ||
28 | ATTR@[39; 83) | 27 | ATTR@[39; 83) |
29 | POUND@[39; 40) "#" | 28 | POUND@[39; 40) "#" |
30 | EXCL@[40; 41) "!" | 29 | EXCL@[40; 41) "!" |
@@ -53,7 +52,6 @@ SOURCE_FILE@[0; 350) | |||
53 | BLOCK@[142; 257) | 52 | BLOCK@[142; 257) |
54 | L_CURLY@[142; 143) "{" | 53 | L_CURLY@[142; 143) "{" |
55 | WHITESPACE@[143; 152) "\n " | 54 | WHITESPACE@[143; 152) "\n " |
56 | err: `A block in this position cannot accept inner attributes` | ||
57 | ATTR@[152; 171) | 55 | ATTR@[152; 171) |
58 | POUND@[152; 153) "#" | 56 | POUND@[152; 153) "#" |
59 | EXCL@[153; 154) "!" | 57 | EXCL@[153; 154) "!" |
@@ -66,7 +64,6 @@ SOURCE_FILE@[0; 350) | |||
66 | R_PAREN@[169; 170) ")" | 64 | R_PAREN@[169; 170) ")" |
67 | R_BRACK@[170; 171) "]" | 65 | R_BRACK@[170; 171) "]" |
68 | WHITESPACE@[171; 180) "\n " | 66 | WHITESPACE@[171; 180) "\n " |
69 | err: `A block in this position cannot accept inner attributes` | ||
70 | ATTR@[180; 212) | 67 | ATTR@[180; 212) |
71 | POUND@[180; 181) "#" | 68 | POUND@[180; 181) "#" |
72 | EXCL@[181; 182) "!" | 69 | EXCL@[181; 182) "!" |
@@ -93,7 +90,6 @@ SOURCE_FILE@[0; 350) | |||
93 | BLOCK@[273; 347) | 90 | BLOCK@[273; 347) |
94 | L_CURLY@[273; 274) "{" | 91 | L_CURLY@[273; 274) "{" |
95 | WHITESPACE@[274; 283) "\n " | 92 | WHITESPACE@[274; 283) "\n " |
96 | err: `A block in this position cannot accept inner attributes` | ||
97 | ATTR@[283; 302) | 93 | ATTR@[283; 302) |
98 | POUND@[283; 284) "#" | 94 | POUND@[283; 284) "#" |
99 | EXCL@[284; 285) "!" | 95 | EXCL@[284; 285) "!" |
@@ -112,3 +108,7 @@ SOURCE_FILE@[0; 350) | |||
112 | WHITESPACE@[347; 348) "\n" | 108 | WHITESPACE@[347; 348) "\n" |
113 | R_CURLY@[348; 349) "}" | 109 | R_CURLY@[348; 349) "}" |
114 | WHITESPACE@[349; 350) "\n" | 110 | WHITESPACE@[349; 350) "\n" |
111 | err: `A block in this position cannot accept inner attributes` | ||
112 | err: `A block in this position cannot accept inner attributes` | ||
113 | err: `A block in this position cannot accept inner attributes` | ||
114 | err: `A block in this position cannot accept inner attributes` | ||