diff options
Diffstat (limited to 'crates/syntax/test_data/parser/ok')
12 files changed, 389 insertions, 343 deletions
diff --git a/crates/syntax/test_data/parser/ok/0006_inner_attributes.rast b/crates/syntax/test_data/parser/ok/0006_inner_attributes.rast index 42587243a..be2d1dc12 100644 --- a/crates/syntax/test_data/parser/ok/0006_inner_attributes.rast +++ b/crates/syntax/test_data/parser/ok/0006_inner_attributes.rast | |||
@@ -3,182 +3,192 @@ [email protected] | |||
3 | [email protected] "#" | 3 | [email protected] "#" |
4 | [email protected] "!" | 4 | [email protected] "!" |
5 | [email protected] "[" | 5 | [email protected] "[" |
6 | [email protected] | 6 | [email protected] |
7 | [email protected] | 7 | [email protected] |
8 | [email protected] | 8 | [email protected] |
9 | [email protected] "attr" | 9 | [email protected] |
10 | [email protected] "attr" | ||
10 | [email protected] "]" | 11 | [email protected] "]" |
11 | [email protected] "\n" | 12 | [email protected] "\n" |
12 | [email protected] | 13 | [email protected] |
13 | [email protected] "#" | 14 | [email protected] "#" |
14 | [email protected] "!" | 15 | [email protected] "!" |
15 | [email protected] "[" | 16 | [email protected] "[" |
16 | [email protected] | 17 | [email protected] |
17 | [email protected] | 18 | [email protected] |
18 | [email protected] | 19 | [email protected] |
19 | [email protected] "attr" | 20 | [email protected] |
20 | [email protected] | 21 | [email protected] "attr" |
21 | [email protected] "(" | 22 | [email protected] |
22 | [email protected] "true" | 23 | [email protected] "(" |
23 | [email protected] ")" | 24 | [email protected] "true" |
25 | [email protected] ")" | ||
24 | [email protected] "]" | 26 | [email protected] "]" |
25 | [email protected] "\n" | 27 | [email protected] "\n" |
26 | [email protected] | 28 | [email protected] |
27 | [email protected] "#" | 29 | [email protected] "#" |
28 | [email protected] "!" | 30 | [email protected] "!" |
29 | [email protected] "[" | 31 | [email protected] "[" |
30 | [email protected] | 32 | [email protected] |
31 | [email protected] | 33 | [email protected] |
32 | [email protected] | 34 | [email protected] |
33 | [email protected] "attr" | 35 | [email protected] |
34 | [email protected] | 36 | [email protected] "attr" |
35 | [email protected] "(" | 37 | [email protected] |
36 | [email protected] "ident" | 38 | [email protected] "(" |
37 | [email protected] ")" | 39 | [email protected] "ident" |
40 | [email protected] ")" | ||
38 | [email protected] "]" | 41 | [email protected] "]" |
39 | [email protected] "\n" | 42 | [email protected] "\n" |
40 | [email protected] | 43 | [email protected] |
41 | [email protected] "#" | 44 | [email protected] "#" |
42 | [email protected] "!" | 45 | [email protected] "!" |
43 | [email protected] "[" | 46 | [email protected] "[" |
44 | [email protected] | 47 | [email protected] |
45 | [email protected] | 48 | [email protected] |
46 | [email protected] | 49 | [email protected] |
47 | [email protected] "attr" | 50 | [email protected] |
48 | [email protected] | 51 | [email protected] "attr" |
49 | [email protected] "(" | 52 | [email protected] |
50 | [email protected] "ident" | 53 | [email protected] "(" |
51 | [email protected] "," | 54 | [email protected] "ident" |
52 | [email protected] " " | 55 | [email protected] "," |
53 | [email protected] "100" | 56 | [email protected] " " |
54 | [email protected] "," | 57 | [email protected] "100" |
55 | [email protected] " " | 58 | [email protected] "," |
56 | [email protected] "true" | 59 | [email protected] " " |
57 | [email protected] "," | 60 | [email protected] "true" |
58 | [email protected] " " | 61 | [email protected] "," |
59 | [email protected] "\"true\"" | 62 | [email protected] " " |
60 | [email protected] "," | 63 | [email protected] "\"true\"" |
61 | [email protected] " " | 64 | [email protected] "," |
62 | [email protected] "ident" | 65 | [email protected] " " |
63 | [email protected] " " | 66 | [email protected] "ident" |
64 | [email protected] "=" | 67 | [email protected] " " |
65 | [email protected] " " | 68 | [email protected] "=" |
66 | [email protected] "100" | 69 | [email protected] " " |
67 | [email protected] "," | 70 | [email protected] "100" |
68 | [email protected] " " | 71 | [email protected] "," |
69 | [email protected] "ident" | 72 | [email protected] " " |
70 | [email protected] " " | 73 | [email protected] "ident" |
71 | [email protected] "=" | 74 | [email protected] " " |
72 | [email protected] " " | 75 | [email protected] "=" |
73 | [email protected] "\"hello\"" | 76 | [email protected] " " |
74 | [email protected] "," | 77 | [email protected] "\"hello\"" |
75 | [email protected] " " | 78 | [email protected] "," |
76 | [email protected] "ident" | 79 | [email protected] " " |
77 | [email protected] | 80 | [email protected] "ident" |
78 | [email protected] "(" | 81 | [email protected] |
79 | [email protected] "100" | 82 | [email protected] "(" |
80 | [email protected] ")" | 83 | [email protected] "100" |
81 | [email protected] ")" | 84 | [email protected] ")" |
85 | [email protected] ")" | ||
82 | [email protected] "]" | 86 | [email protected] "]" |
83 | [email protected] "\n" | 87 | [email protected] "\n" |
84 | [email protected] | 88 | [email protected] |
85 | [email protected] "#" | 89 | [email protected] "#" |
86 | [email protected] "!" | 90 | [email protected] "!" |
87 | [email protected] "[" | 91 | [email protected] "[" |
88 | [email protected] | 92 | [email protected] |
89 | [email protected] | 93 | [email protected] |
90 | [email protected] | 94 | [email protected] |
91 | [email protected] "attr" | 95 | [email protected] |
92 | [email protected] | 96 | [email protected] "attr" |
93 | [email protected] "(" | 97 | [email protected] |
94 | [email protected] "100" | 98 | [email protected] "(" |
95 | [email protected] ")" | 99 | [email protected] "100" |
100 | [email protected] ")" | ||
96 | [email protected] "]" | 101 | [email protected] "]" |
97 | [email protected] "\n" | 102 | [email protected] "\n" |
98 | [email protected] | 103 | [email protected] |
99 | [email protected] "#" | 104 | [email protected] "#" |
100 | [email protected] "!" | 105 | [email protected] "!" |
101 | [email protected] "[" | 106 | [email protected] "[" |
102 | [email protected] | 107 | [email protected] |
103 | [email protected] | 108 | [email protected] |
104 | [email protected] | 109 | [email protected] |
105 | [email protected] "attr" | 110 | [email protected] |
106 | [email protected] | 111 | [email protected] "attr" |
107 | [email protected] "(" | 112 | [email protected] |
108 | [email protected] "enabled" | 113 | [email protected] "(" |
109 | [email protected] " " | 114 | [email protected] "enabled" |
110 | [email protected] "=" | 115 | [email protected] " " |
111 | [email protected] " " | 116 | [email protected] "=" |
112 | [email protected] "true" | 117 | [email protected] " " |
113 | [email protected] ")" | 118 | [email protected] "true" |
119 | [email protected] ")" | ||
114 | [email protected] "]" | 120 | [email protected] "]" |
115 | [email protected] "\n" | 121 | [email protected] "\n" |
116 | [email protected] | 122 | [email protected] |
117 | [email protected] "#" | 123 | [email protected] "#" |
118 | [email protected] "!" | 124 | [email protected] "!" |
119 | [email protected] "[" | 125 | [email protected] "[" |
120 | [email protected] | 126 | [email protected] |
121 | [email protected] | 127 | [email protected] |
122 | [email protected] | 128 | [email protected] |
123 | [email protected] "enabled" | 129 | [email protected] |
124 | [email protected] | 130 | [email protected] "enabled" |
125 | [email protected] "(" | 131 | [email protected] |
126 | [email protected] "true" | 132 | [email protected] "(" |
127 | [email protected] ")" | 133 | [email protected] "true" |
134 | [email protected] ")" | ||
128 | [email protected] "]" | 135 | [email protected] "]" |
129 | [email protected] "\n" | 136 | [email protected] "\n" |
130 | [email protected] | 137 | [email protected] |
131 | [email protected] "#" | 138 | [email protected] "#" |
132 | [email protected] "!" | 139 | [email protected] "!" |
133 | [email protected] "[" | 140 | [email protected] "[" |
134 | [email protected] | 141 | [email protected] |
135 | [email protected] | 142 | [email protected] |
136 | [email protected] | 143 | [email protected] |
137 | [email protected] "attr" | 144 | [email protected] |
138 | [email protected] | 145 | [email protected] "attr" |
139 | [email protected] "(" | 146 | [email protected] |
140 | [email protected] "\"hello\"" | 147 | [email protected] "(" |
141 | [email protected] ")" | 148 | [email protected] "\"hello\"" |
149 | [email protected] ")" | ||
142 | [email protected] "]" | 150 | [email protected] "]" |
143 | [email protected] "\n" | 151 | [email protected] "\n" |
144 | [email protected] | 152 | [email protected] |
145 | [email protected] "#" | 153 | [email protected] "#" |
146 | [email protected] "!" | 154 | [email protected] "!" |
147 | [email protected] "[" | 155 | [email protected] "[" |
148 | [email protected] | 156 | [email protected] |
149 | [email protected] | 157 | [email protected] |
150 | [email protected] | 158 | [email protected] |
151 | [email protected] "repr" | 159 | [email protected] |
152 | [email protected] | 160 | [email protected] "repr" |
153 | [email protected] "(" | 161 | [email protected] |
154 | [email protected] "C" | 162 | [email protected] "(" |
155 | [email protected] "," | 163 | [email protected] "C" |
156 | [email protected] " " | 164 | [email protected] "," |
157 | [email protected] "align" | 165 | [email protected] " " |
158 | [email protected] " " | 166 | [email protected] "align" |
159 | [email protected] "=" | 167 | [email protected] " " |
160 | [email protected] " " | 168 | [email protected] "=" |
161 | [email protected] "4" | 169 | [email protected] " " |
162 | [email protected] ")" | 170 | [email protected] "4" |
171 | [email protected] ")" | ||
163 | [email protected] "]" | 172 | [email protected] "]" |
164 | [email protected] "\n" | 173 | [email protected] "\n" |
165 | [email protected] | 174 | [email protected] |
166 | [email protected] "#" | 175 | [email protected] "#" |
167 | [email protected] "!" | 176 | [email protected] "!" |
168 | [email protected] "[" | 177 | [email protected] "[" |
169 | [email protected] | 178 | [email protected] |
170 | [email protected] | 179 | [email protected] |
171 | [email protected] | 180 | [email protected] |
172 | [email protected] "repr" | 181 | [email protected] |
173 | [email protected] | 182 | [email protected] "repr" |
174 | [email protected] "(" | 183 | [email protected] |
175 | [email protected] "C" | 184 | [email protected] "(" |
176 | [email protected] "," | 185 | [email protected] "C" |
177 | [email protected] " " | 186 | [email protected] "," |
178 | [email protected] "align" | 187 | [email protected] " " |
179 | [email protected] | 188 | [email protected] "align" |
180 | [email protected] "(" | 189 | [email protected] |
181 | [email protected] "4" | 190 | [email protected] "(" |
182 | [email protected] ")" | 191 | [email protected] "4" |
183 | [email protected] ")" | 192 | [email protected] ")" |
193 | [email protected] ")" | ||
184 | [email protected] "]" | 194 | [email protected] "]" |
diff --git a/crates/syntax/test_data/parser/ok/0008_mod_item.rast b/crates/syntax/test_data/parser/ok/0008_mod_item.rast index b2c1d791f..8b1e0a52d 100644 --- a/crates/syntax/test_data/parser/ok/0008_mod_item.rast +++ b/crates/syntax/test_data/parser/ok/0008_mod_item.rast | |||
@@ -65,10 +65,11 @@ [email protected] | |||
65 | [email protected] "#" | 65 | [email protected] "#" |
66 | [email protected] "!" | 66 | [email protected] "!" |
67 | [email protected] "[" | 67 | [email protected] "[" |
68 | [email protected] | 68 | [email protected] |
69 | [email protected] | 69 | [email protected] |
70 | [email protected] | 70 | [email protected] |
71 | [email protected] "attr" | 71 | [email protected] |
72 | [email protected] "attr" | ||
72 | [email protected] "]" | 73 | [email protected] "]" |
73 | [email protected] "\n " | 74 | [email protected] "\n " |
74 | [email protected] | 75 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0011_outer_attribute.rast b/crates/syntax/test_data/parser/ok/0011_outer_attribute.rast index 478fdba75..ff5877a7b 100644 --- a/crates/syntax/test_data/parser/ok/0011_outer_attribute.rast +++ b/crates/syntax/test_data/parser/ok/0011_outer_attribute.rast | |||
@@ -3,23 +3,25 @@ [email protected] | |||
3 | [email protected] | 3 | [email protected] |
4 | [email protected] "#" | 4 | [email protected] "#" |
5 | [email protected] "[" | 5 | [email protected] "[" |
6 | [email protected] | 6 | [email protected] |
7 | [email protected] | 7 | [email protected] |
8 | [email protected] | 8 | [email protected] |
9 | [email protected] "cfg" | 9 | [email protected] |
10 | [email protected] | 10 | [email protected] "cfg" |
11 | [email protected] "(" | 11 | [email protected] |
12 | [email protected] "test" | 12 | [email protected] "(" |
13 | [email protected] ")" | 13 | [email protected] "test" |
14 | [email protected] ")" | ||
14 | [email protected] "]" | 15 | [email protected] "]" |
15 | [email protected] "\n" | 16 | [email protected] "\n" |
16 | [email protected] | 17 | [email protected] |
17 | [email protected] "#" | 18 | [email protected] "#" |
18 | [email protected] "[" | 19 | [email protected] "[" |
19 | [email protected] | 20 | [email protected] |
20 | [email protected] | 21 | [email protected] |
21 | [email protected] | 22 | [email protected] |
22 | [email protected] "ignore" | 23 | [email protected] |
24 | [email protected] "ignore" | ||
23 | [email protected] "]" | 25 | [email protected] "]" |
24 | [email protected] "\n" | 26 | [email protected] "\n" |
25 | [email protected] "fn" | 27 | [email protected] "fn" |
@@ -38,15 +40,16 @@ [email protected] | |||
38 | [email protected] | 40 | [email protected] |
39 | [email protected] "#" | 41 | [email protected] "#" |
40 | [email protected] "[" | 42 | [email protected] "[" |
41 | [email protected] | 43 | [email protected] |
42 | [email protected] | 44 | [email protected] |
43 | [email protected] | 45 | [email protected] |
44 | [email protected] "path" | 46 | [email protected] |
45 | [email protected] " " | 47 | [email protected] "path" |
46 | [email protected] "=" | 48 | [email protected] " " |
47 | [email protected] " " | 49 | [email protected] "=" |
48 | [email protected] | 50 | [email protected] " " |
49 | [email protected] "\"a.rs\"" | 51 | [email protected] |
52 | [email protected] "\"a.rs\"" | ||
50 | [email protected] "]" | 53 | [email protected] "]" |
51 | [email protected] "\n" | 54 | [email protected] "\n" |
52 | [email protected] "mod" | 55 | [email protected] "mod" |
diff --git a/crates/syntax/test_data/parser/ok/0017_attr_trailing_comma.rast b/crates/syntax/test_data/parser/ok/0017_attr_trailing_comma.rast index a3e091ad3..94791f771 100644 --- a/crates/syntax/test_data/parser/ok/0017_attr_trailing_comma.rast +++ b/crates/syntax/test_data/parser/ok/0017_attr_trailing_comma.rast | |||
@@ -3,15 +3,16 @@ [email protected] | |||
3 | [email protected] | 3 | [email protected] |
4 | [email protected] "#" | 4 | [email protected] "#" |
5 | [email protected] "[" | 5 | [email protected] "[" |
6 | [email protected] | 6 | [email protected] |
7 | [email protected] | 7 | [email protected] |
8 | [email protected] | 8 | [email protected] |
9 | [email protected] "foo" | 9 | [email protected] |
10 | [email protected] | 10 | [email protected] "foo" |
11 | [email protected] "(" | 11 | [email protected] |
12 | [email protected] "a" | 12 | [email protected] "(" |
13 | [email protected] "," | 13 | [email protected] "a" |
14 | [email protected] ")" | 14 | [email protected] "," |
15 | [email protected] ")" | ||
15 | [email protected] "]" | 16 | [email protected] "]" |
16 | [email protected] "\n" | 17 | [email protected] "\n" |
17 | [email protected] "fn" | 18 | [email protected] "fn" |
diff --git a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast index 46b192dc1..20675dbf5 100644 --- a/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast +++ b/crates/syntax/test_data/parser/ok/0035_weird_exprs.rast | |||
@@ -11,71 +11,76 @@ [email protected] | |||
11 | [email protected] "#" | 11 | [email protected] "#" |
12 | [email protected] "!" | 12 | [email protected] "!" |
13 | [email protected] "[" | 13 | [email protected] "[" |
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] | 16 | [email protected] |
17 | [email protected] "allow" | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] "allow" |
19 | [email protected] "(" | 19 | [email protected] |
20 | [email protected] "non_camel_case_types" | 20 | [email protected] "(" |
21 | [email protected] ")" | 21 | [email protected] "non_camel_case_types" |
22 | [email protected] ")" | ||
22 | [email protected] "]" | 23 | [email protected] "]" |
23 | [email protected] "\n" | 24 | [email protected] "\n" |
24 | [email protected] | 25 | [email protected] |
25 | [email protected] "#" | 26 | [email protected] "#" |
26 | [email protected] "!" | 27 | [email protected] "!" |
27 | [email protected] "[" | 28 | [email protected] "[" |
28 | [email protected] | 29 | [email protected] |
29 | [email protected] | 30 | [email protected] |
30 | [email protected] | 31 | [email protected] |
31 | [email protected] "allow" | 32 | [email protected] |
32 | [email protected] | 33 | [email protected] "allow" |
33 | [email protected] "(" | 34 | [email protected] |
34 | [email protected] "dead_code" | 35 | [email protected] "(" |
35 | [email protected] ")" | 36 | [email protected] "dead_code" |
37 | [email protected] ")" | ||
36 | [email protected] "]" | 38 | [email protected] "]" |
37 | [email protected] "\n" | 39 | [email protected] "\n" |
38 | [email protected] | 40 | [email protected] |
39 | [email protected] "#" | 41 | [email protected] "#" |
40 | [email protected] "!" | 42 | [email protected] "!" |
41 | [email protected] "[" | 43 | [email protected] "[" |
42 | [email protected] | 44 | [email protected] |
43 | [email protected] | 45 | [email protected] |
44 | [email protected] | 46 | [email protected] |
45 | [email protected] "allow" | 47 | [email protected] |
46 | [email protected] | 48 | [email protected] "allow" |
47 | [email protected] "(" | 49 | [email protected] |
48 | [email protected] "unreachable_code" | 50 | [email protected] "(" |
49 | [email protected] ")" | 51 | [email protected] "unreachable_code" |
52 | [email protected] ")" | ||
50 | [email protected] "]" | 53 | [email protected] "]" |
51 | [email protected] "\n" | 54 | [email protected] "\n" |
52 | [email protected] | 55 | [email protected] |
53 | [email protected] "#" | 56 | [email protected] "#" |
54 | [email protected] "!" | 57 | [email protected] "!" |
55 | [email protected] "[" | 58 | [email protected] "[" |
56 | [email protected] | 59 | [email protected] |
57 | [email protected] | 60 | [email protected] |
58 | [email protected] | 61 | [email protected] |
59 | [email protected] "allow" | 62 | [email protected] |
60 | [email protected] | 63 | [email protected] "allow" |
61 | [email protected] "(" | 64 | [email protected] |
62 | [email protected] "unused_parens" | 65 | [email protected] "(" |
63 | [email protected] ")" | 66 | [email protected] "unused_parens" |
67 | [email protected] ")" | ||
64 | [email protected] "]" | 68 | [email protected] "]" |
65 | [email protected] "\n\n" | 69 | [email protected] "\n\n" |
66 | [email protected] | 70 | [email protected] |
67 | [email protected] "#" | 71 | [email protected] "#" |
68 | [email protected] "!" | 72 | [email protected] "!" |
69 | [email protected] "[" | 73 | [email protected] "[" |
70 | [email protected] | 74 | [email protected] |
71 | [email protected] | 75 | [email protected] |
72 | [email protected] | 76 | [email protected] |
73 | [email protected] "recursion_limit" | 77 | [email protected] |
74 | [email protected] " " | 78 | [email protected] "recursion_limit" |
75 | [email protected] "=" | 79 | [email protected] " " |
76 | [email protected] " " | 80 | [email protected] "=" |
77 | [email protected] | 81 | [email protected] " " |
78 | [email protected] "\"128\"" | 82 | [email protected] |
83 | [email protected] "\"128\"" | ||
79 | [email protected] "]" | 84 | [email protected] "]" |
80 | [email protected] "\n\n" | 85 | [email protected] "\n\n" |
81 | [email protected] | 86 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0044_let_attrs.rast b/crates/syntax/test_data/parser/ok/0044_let_attrs.rast index af44a4dbe..d0e7a1dbe 100644 --- a/crates/syntax/test_data/parser/ok/0044_let_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0044_let_attrs.rast | |||
@@ -17,18 +17,19 @@ [email protected] | |||
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "#" | 18 | [email protected] "#" |
19 | [email protected] "[" | 19 | [email protected] "[" |
20 | [email protected] | 20 | [email protected] |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] | 22 | [email protected] |
23 | [email protected] "cfg" | 23 | [email protected] |
24 | [email protected] | 24 | [email protected] "cfg" |
25 | [email protected] "(" | 25 | [email protected] |
26 | [email protected] "feature" | 26 | [email protected] "(" |
27 | [email protected] " " | 27 | [email protected] "feature" |
28 | [email protected] "=" | 28 | [email protected] " " |
29 | [email protected] " " | 29 | [email protected] "=" |
30 | [email protected] "\"backtrace\"" | 30 | [email protected] " " |
31 | [email protected] ")" | 31 | [email protected] "\"backtrace\"" |
32 | [email protected] ")" | ||
32 | [email protected] "]" | 33 | [email protected] "]" |
33 | [email protected] "\n " | 34 | [email protected] "\n " |
34 | [email protected] "let" | 35 | [email protected] "let" |
diff --git a/crates/syntax/test_data/parser/ok/0045_block_attrs.rast b/crates/syntax/test_data/parser/ok/0045_block_attrs.rast index 5e50b4e0b..7fbd635d0 100644 --- a/crates/syntax/test_data/parser/ok/0045_block_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0045_block_attrs.rast | |||
@@ -15,14 +15,15 @@ [email protected] | |||
15 | [email protected] "#" | 15 | [email protected] "#" |
16 | [email protected] "!" | 16 | [email protected] "!" |
17 | [email protected] "[" | 17 | [email protected] "[" |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] | 20 | [email protected] |
21 | [email protected] "doc" | 21 | [email protected] |
22 | [email protected] | 22 | [email protected] "doc" |
23 | [email protected] "(" | 23 | [email protected] |
24 | [email protected] "\"Inner attributes all ..." | 24 | [email protected] "(" |
25 | [email protected] ")" | 25 | [email protected] "\"Inner attributes all ..." |
26 | [email protected] ")" | ||
26 | [email protected] "]" | 27 | [email protected] "]" |
27 | [email protected] "\n " | 28 | [email protected] "\n " |
28 | [email protected] "//! As are ModuleDoc ..." | 29 | [email protected] "//! As are ModuleDoc ..." |
@@ -35,28 +36,30 @@ [email protected] | |||
35 | [email protected] "#" | 36 | [email protected] "#" |
36 | [email protected] "!" | 37 | [email protected] "!" |
37 | [email protected] "[" | 38 | [email protected] "[" |
38 | [email protected] | 39 | [email protected] |
39 | [email protected] | 40 | [email protected] |
40 | [email protected] | 41 | [email protected] |
41 | [email protected] "doc" | 42 | [email protected] |
42 | [email protected] | 43 | [email protected] "doc" |
43 | [email protected] "(" | 44 | [email protected] |
44 | [email protected] "\"Inner attributes are ..." | 45 | [email protected] "(" |
45 | [email protected] ")" | 46 | [email protected] "\"Inner attributes are ..." |
47 | [email protected] ")" | ||
46 | [email protected] "]" | 48 | [email protected] "]" |
47 | [email protected] "\n " | 49 | [email protected] "\n " |
48 | [email protected] | 50 | [email protected] |
49 | [email protected] "#" | 51 | [email protected] "#" |
50 | [email protected] "!" | 52 | [email protected] "!" |
51 | [email protected] "[" | 53 | [email protected] "[" |
52 | [email protected] | 54 | [email protected] |
53 | [email protected] | 55 | [email protected] |
54 | [email protected] | 56 | [email protected] |
55 | [email protected] "doc" | 57 | [email protected] |
56 | [email protected] | 58 | [email protected] "doc" |
57 | [email protected] "(" | 59 | [email protected] |
58 | [email protected] "\"Being validated is n ..." | 60 | [email protected] "(" |
59 | [email protected] ")" | 61 | [email protected] "\"Being validated is n ..." |
62 | [email protected] ")" | ||
60 | [email protected] "]" | 63 | [email protected] "]" |
61 | [email protected] "\n " | 64 | [email protected] "\n " |
62 | [email protected] "//! As are ModuleDoc ..." | 65 | [email protected] "//! As are ModuleDoc ..." |
@@ -71,14 +74,15 @@ [email protected] | |||
71 | [email protected] "#" | 74 | [email protected] "#" |
72 | [email protected] "!" | 75 | [email protected] "!" |
73 | [email protected] "[" | 76 | [email protected] "[" |
74 | [email protected] | 77 | [email protected] |
75 | [email protected] | 78 | [email protected] |
76 | [email protected] | 79 | [email protected] |
77 | [email protected] "doc" | 80 | [email protected] |
78 | [email protected] | 81 | [email protected] "doc" |
79 | [email protected] "(" | 82 | [email protected] |
80 | [email protected] "\"Inner attributes are ..." | 83 | [email protected] "(" |
81 | [email protected] ")" | 84 | [email protected] "\"Inner attributes are ..." |
85 | [email protected] ")" | ||
82 | [email protected] "]" | 86 | [email protected] "]" |
83 | [email protected] "\n " | 87 | [email protected] "\n " |
84 | [email protected] "//! As are ModuleDoc ..." | 88 | [email protected] "//! As are ModuleDoc ..." |
@@ -111,14 +115,15 @@ [email protected] | |||
111 | [email protected] | 115 | [email protected] |
112 | [email protected] "#" | 116 | [email protected] "#" |
113 | [email protected] "[" | 117 | [email protected] "[" |
114 | [email protected] | 118 | [email protected] |
115 | [email protected] | 119 | [email protected] |
116 | [email protected] | 120 | [email protected] |
117 | [email protected] "doc" | 121 | [email protected] |
118 | [email protected] | 122 | [email protected] "doc" |
119 | [email protected] "(" | 123 | [email protected] |
120 | [email protected] "\"Outer attributes are ..." | 124 | [email protected] "(" |
121 | [email protected] ")" | 125 | [email protected] "\"Outer attributes are ..." |
126 | [email protected] ")" | ||
122 | [email protected] "]" | 127 | [email protected] "]" |
123 | [email protected] " " | 128 | [email protected] " " |
124 | [email protected] "{" | 129 | [email protected] "{" |
@@ -200,14 +205,15 @@ [email protected] | |||
200 | [email protected] "#" | 205 | [email protected] "#" |
201 | [email protected] "!" | 206 | [email protected] "!" |
202 | [email protected] "[" | 207 | [email protected] "[" |
203 | [email protected] | 208 | [email protected] |
204 | [email protected] | 209 | [email protected] |
205 | [email protected] | 210 | [email protected] |
206 | [email protected] "allow" | 211 | [email protected] |
207 | [email protected] | 212 | [email protected] "allow" |
208 | [email protected] "(" | 213 | [email protected] |
209 | [email protected] "unused_variables" | 214 | [email protected] "(" |
210 | [email protected] ")" | 215 | [email protected] "unused_variables" |
216 | [email protected] ")" | ||
211 | [email protected] "]" | 217 | [email protected] "]" |
212 | [email protected] " " | 218 | [email protected] " " |
213 | [email protected] "// this is `inner_at ..." | 219 | [email protected] "// this is `inner_at ..." |
diff --git a/crates/syntax/test_data/parser/ok/0046_extern_inner_attributes.rast b/crates/syntax/test_data/parser/ok/0046_extern_inner_attributes.rast index 37594769a..854ff9d56 100644 --- a/crates/syntax/test_data/parser/ok/0046_extern_inner_attributes.rast +++ b/crates/syntax/test_data/parser/ok/0046_extern_inner_attributes.rast | |||
@@ -14,14 +14,15 @@ [email protected] | |||
14 | [email protected] "#" | 14 | [email protected] "#" |
15 | [email protected] "!" | 15 | [email protected] "!" |
16 | [email protected] "[" | 16 | [email protected] "[" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] "doc" | 20 | [email protected] |
21 | [email protected] | 21 | [email protected] "doc" |
22 | [email protected] "(" | 22 | [email protected] |
23 | [email protected] "\"This is also a doc c ..." | 23 | [email protected] "(" |
24 | [email protected] ")" | 24 | [email protected] "\"This is also a doc c ..." |
25 | [email protected] ")" | ||
25 | [email protected] "]" | 26 | [email protected] "]" |
26 | [email protected] "\n" | 27 | [email protected] "\n" |
27 | [email protected] "}" | 28 | [email protected] "}" |
diff --git a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast index 88470c41c..f935a0df5 100644 --- a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast | |||
@@ -10,19 +10,21 @@ [email protected] | |||
10 | [email protected] | 10 | [email protected] |
11 | [email protected] "#" | 11 | [email protected] "#" |
12 | [email protected] "[" | 12 | [email protected] "[" |
13 | [email protected] | 13 | [email protected] |
14 | [email protected] | 14 | [email protected] |
15 | [email protected] | 15 | [email protected] |
16 | [email protected] "attr1" | 16 | [email protected] |
17 | [email protected] "attr1" | ||
17 | [email protected] "]" | 18 | [email protected] "]" |
18 | [email protected] " " | 19 | [email protected] " " |
19 | [email protected] | 20 | [email protected] |
20 | [email protected] "#" | 21 | [email protected] "#" |
21 | [email protected] "[" | 22 | [email protected] "[" |
22 | [email protected] | 23 | [email protected] |
23 | [email protected] | 24 | [email protected] |
24 | [email protected] | 25 | [email protected] |
25 | [email protected] "attr2" | 26 | [email protected] |
27 | [email protected] "attr2" | ||
26 | [email protected] "]" | 28 | [email protected] "]" |
27 | [email protected] " " | 29 | [email protected] " " |
28 | [email protected] | 30 | [email protected] |
@@ -52,10 +54,11 @@ [email protected] | |||
52 | [email protected] | 54 | [email protected] |
53 | [email protected] "#" | 55 | [email protected] "#" |
54 | [email protected] "[" | 56 | [email protected] "[" |
55 | [email protected] | 57 | [email protected] |
56 | [email protected] | 58 | [email protected] |
57 | [email protected] | 59 | [email protected] |
58 | [email protected] "attr1" | 60 | [email protected] |
61 | [email protected] "attr1" | ||
59 | [email protected] "]" | 62 | [email protected] "]" |
60 | [email protected] " " | 63 | [email protected] " " |
61 | [email protected] | 64 | [email protected] |
@@ -111,10 +114,11 @@ [email protected] | |||
111 | [email protected] | 114 | [email protected] |
112 | [email protected] "#" | 115 | [email protected] "#" |
113 | [email protected] "[" | 116 | [email protected] "[" |
114 | [email protected] | 117 | [email protected] |
115 | [email protected] | 118 | [email protected] |
116 | [email protected] | 119 | [email protected] |
117 | [email protected] "attr" | 120 | [email protected] |
121 | [email protected] "attr" | ||
118 | [email protected] "]" | 122 | [email protected] "]" |
119 | [email protected] " " | 123 | [email protected] " " |
120 | [email protected] "..." | 124 | [email protected] "..." |
@@ -157,10 +161,11 @@ [email protected] | |||
157 | [email protected] | 161 | [email protected] |
158 | [email protected] "#" | 162 | [email protected] "#" |
159 | [email protected] "[" | 163 | [email protected] "[" |
160 | [email protected] | 164 | [email protected] |
161 | [email protected] | 165 | [email protected] |
162 | [email protected] | 166 | [email protected] |
163 | [email protected] "attr" | 167 | [email protected] |
168 | [email protected] "attr" | ||
164 | [email protected] "]" | 169 | [email protected] "]" |
165 | [email protected] " " | 170 | [email protected] " " |
166 | [email protected] | 171 | [email protected] |
@@ -207,10 +212,11 @@ [email protected] | |||
207 | [email protected] | 212 | [email protected] |
208 | [email protected] "#" | 213 | [email protected] "#" |
209 | [email protected] "[" | 214 | [email protected] "[" |
210 | [email protected] | 215 | [email protected] |
211 | [email protected] | 216 | [email protected] |
212 | [email protected] | 217 | [email protected] |
213 | [email protected] "attr" | 218 | [email protected] |
219 | [email protected] "attr" | ||
214 | [email protected] "]" | 220 | [email protected] "]" |
215 | [email protected] " " | 221 | [email protected] " " |
216 | [email protected] | 222 | [email protected] |
@@ -229,10 +235,11 @@ [email protected] | |||
229 | [email protected] "#" | 235 | [email protected] "#" |
230 | [email protected] " " | 236 | [email protected] " " |
231 | [email protected] "[" | 237 | [email protected] "[" |
232 | [email protected] | 238 | [email protected] |
233 | [email protected] | 239 | [email protected] |
234 | [email protected] | 240 | [email protected] |
235 | [email protected] "attr" | 241 | [email protected] |
242 | [email protected] "attr" | ||
236 | [email protected] "]" | 243 | [email protected] "]" |
237 | [email protected] " " | 244 | [email protected] " " |
238 | [email protected] | 245 | [email protected] |
@@ -275,10 +282,11 @@ [email protected] | |||
275 | [email protected] | 282 | [email protected] |
276 | [email protected] "#" | 283 | [email protected] "#" |
277 | [email protected] "[" | 284 | [email protected] "[" |
278 | [email protected] | 285 | [email protected] |
279 | [email protected] | 286 | [email protected] |
280 | [email protected] | 287 | [email protected] |
281 | [email protected] "must_use" | 288 | [email protected] |
289 | [email protected] "must_use" | ||
282 | [email protected] "]" | 290 | [email protected] "]" |
283 | [email protected] " " | 291 | [email protected] " " |
284 | [email protected] | 292 | [email protected] |
@@ -300,10 +308,11 @@ [email protected] | |||
300 | [email protected] | 308 | [email protected] |
301 | [email protected] "#" | 309 | [email protected] "#" |
302 | [email protected] "[" | 310 | [email protected] "[" |
303 | [email protected] | 311 | [email protected] |
304 | [email protected] | 312 | [email protected] |
305 | [email protected] | 313 | [email protected] |
306 | [email protected] "attr" | 314 | [email protected] |
315 | [email protected] "attr" | ||
307 | [email protected] "]" | 316 | [email protected] "]" |
308 | [email protected] " " | 317 | [email protected] " " |
309 | [email protected] | 318 | [email protected] |
@@ -325,10 +334,11 @@ [email protected] | |||
325 | [email protected] | 334 | [email protected] |
326 | [email protected] "#" | 335 | [email protected] "#" |
327 | [email protected] "[" | 336 | [email protected] "[" |
328 | [email protected] | 337 | [email protected] |
329 | [email protected] | 338 | [email protected] |
330 | [email protected] | 339 | [email protected] |
331 | [email protected] "attr" | 340 | [email protected] |
341 | [email protected] "attr" | ||
332 | [email protected] "]" | 342 | [email protected] "]" |
333 | [email protected] " " | 343 | [email protected] " " |
334 | [email protected] "&" | 344 | [email protected] "&" |
@@ -357,10 +367,11 @@ [email protected] | |||
357 | [email protected] | 367 | [email protected] |
358 | [email protected] "#" | 368 | [email protected] "#" |
359 | [email protected] "[" | 369 | [email protected] "[" |
360 | [email protected] | 370 | [email protected] |
361 | [email protected] | 371 | [email protected] |
362 | [email protected] | 372 | [email protected] |
363 | [email protected] "attr" | 373 | [email protected] |
374 | [email protected] "attr" | ||
364 | [email protected] "]" | 375 | [email protected] "]" |
365 | [email protected] " " | 376 | [email protected] " " |
366 | [email protected] "&" | 377 | [email protected] "&" |
@@ -391,10 +402,11 @@ [email protected] | |||
391 | [email protected] | 402 | [email protected] |
392 | [email protected] "#" | 403 | [email protected] "#" |
393 | [email protected] "[" | 404 | [email protected] "[" |
394 | [email protected] | 405 | [email protected] |
395 | [email protected] | 406 | [email protected] |
396 | [email protected] | 407 | [email protected] |
397 | [email protected] "attr" | 408 | [email protected] |
409 | [email protected] "attr" | ||
398 | [email protected] "]" | 410 | [email protected] "]" |
399 | [email protected] " " | 411 | [email protected] " " |
400 | [email protected] "&" | 412 | [email protected] "&" |
@@ -426,10 +438,11 @@ [email protected] | |||
426 | [email protected] | 438 | [email protected] |
427 | [email protected] "#" | 439 | [email protected] "#" |
428 | [email protected] "[" | 440 | [email protected] "[" |
429 | [email protected] | 441 | [email protected] |
430 | [email protected] | 442 | [email protected] |
431 | [email protected] | 443 | [email protected] |
432 | [email protected] "attr" | 444 | [email protected] |
445 | [email protected] "attr" | ||
433 | [email protected] "]" | 446 | [email protected] "]" |
434 | [email protected] " " | 447 | [email protected] " " |
435 | [email protected] "&" | 448 | [email protected] "&" |
@@ -457,10 +470,11 @@ [email protected] | |||
457 | [email protected] | 470 | [email protected] |
458 | [email protected] "#" | 471 | [email protected] "#" |
459 | [email protected] "[" | 472 | [email protected] "[" |
460 | [email protected] | 473 | [email protected] |
461 | [email protected] | 474 | [email protected] |
462 | [email protected] | 475 | [email protected] |
463 | [email protected] "attr" | 476 | [email protected] |
477 | [email protected] "attr" | ||
464 | [email protected] "]" | 478 | [email protected] "]" |
465 | [email protected] " " | 479 | [email protected] " " |
466 | [email protected] | 480 | [email protected] |
@@ -489,10 +503,11 @@ [email protected] | |||
489 | [email protected] | 503 | [email protected] |
490 | [email protected] "#" | 504 | [email protected] "#" |
491 | [email protected] "[" | 505 | [email protected] "[" |
492 | [email protected] | 506 | [email protected] |
493 | [email protected] | 507 | [email protected] |
494 | [email protected] | 508 | [email protected] |
495 | [email protected] "attr" | 509 | [email protected] |
510 | [email protected] "attr" | ||
496 | [email protected] "]" | 511 | [email protected] "]" |
497 | [email protected] " " | 512 | [email protected] " " |
498 | [email protected] | 513 | [email protected] |
diff --git a/crates/syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast b/crates/syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast index 87d8ebcba..97416f16a 100644 --- a/crates/syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast +++ b/crates/syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast | |||
@@ -5,10 +5,11 @@ [email protected] | |||
5 | [email protected] | 5 | [email protected] |
6 | [email protected] "#" | 6 | [email protected] "#" |
7 | [email protected] "[" | 7 | [email protected] "[" |
8 | [email protected] | 8 | [email protected] |
9 | [email protected] | 9 | [email protected] |
10 | [email protected] | 10 | [email protected] |
11 | [email protected] "macro_export" | 11 | [email protected] |
12 | [email protected] "macro_export" | ||
12 | [email protected] "]" | 13 | [email protected] "]" |
13 | [email protected] "\n" | 14 | [email protected] "\n" |
14 | [email protected] "macro_rules" | 15 | [email protected] "macro_rules" |
diff --git a/crates/syntax/test_data/parser/ok/0062_macro_2.0.rast b/crates/syntax/test_data/parser/ok/0062_macro_2.0.rast index 0c22c31a4..e75848f0f 100644 --- a/crates/syntax/test_data/parser/ok/0062_macro_2.0.rast +++ b/crates/syntax/test_data/parser/ok/0062_macro_2.0.rast | |||
@@ -55,10 +55,11 @@ [email protected] | |||
55 | [email protected] | 55 | [email protected] |
56 | [email protected] "#" | 56 | [email protected] "#" |
57 | [email protected] "[" | 57 | [email protected] "[" |
58 | [email protected] | 58 | [email protected] |
59 | [email protected] | 59 | [email protected] |
60 | [email protected] | 60 | [email protected] |
61 | [email protected] "test" | 61 | [email protected] |
62 | [email protected] "test" | ||
62 | [email protected] "]" | 63 | [email protected] "]" |
63 | [email protected] "\n" | 64 | [email protected] "\n" |
64 | [email protected] "fn" | 65 | [email protected] "fn" |
diff --git a/crates/syntax/test_data/parser/ok/0063_variadic_fun.rast b/crates/syntax/test_data/parser/ok/0063_variadic_fun.rast index f7c094898..dcc4105c9 100644 --- a/crates/syntax/test_data/parser/ok/0063_variadic_fun.rast +++ b/crates/syntax/test_data/parser/ok/0063_variadic_fun.rast | |||
@@ -96,14 +96,15 @@ [email protected] | |||
96 | [email protected] | 96 | [email protected] |
97 | [email protected] "#" | 97 | [email protected] "#" |
98 | [email protected] "[" | 98 | [email protected] "[" |
99 | [email protected] | 99 | [email protected] |
100 | [email protected] | 100 | [email protected] |
101 | [email protected] | 101 | [email protected] |
102 | [email protected] "cfg" | 102 | [email protected] |
103 | [email protected] | 103 | [email protected] "cfg" |
104 | [email protected] "(" | 104 | [email protected] |
105 | [email protected] "never" | 105 | [email protected] "(" |
106 | [email protected] ")" | 106 | [email protected] "never" |
107 | [email protected] ")" | ||
107 | [email protected] "]" | 108 | [email protected] "]" |
108 | [email protected] " " | 109 | [email protected] " " |
109 | [email protected] | 110 | [email protected] |