| ... | ... | @@ -233,7 +233,7 @@ test "zig fmt: eof after missing comma" { |
| 233 | 233 | try testError( |
| 234 | 234 | \\foo() |
| 235 | 235 | , &[_]Error{ |
| 236 | | .expected_token, |
| 236 | .expected_comma_after_field, |
| 237 | 237 | }); |
| 238 | 238 | } |
| 239 | 239 | |
| ... | ... | @@ -5074,8 +5074,8 @@ test "recovery: missing comma" { |
| 5074 | 5074 | \\ } |
| 5075 | 5075 | \\} |
| 5076 | 5076 | , &[_]Error{ |
| 5077 | | .expected_token, |
| 5078 | | .expected_token, |
| 5077 | .expected_comma_after_switch_prong, |
| 5078 | .expected_comma_after_switch_prong, |
| 5079 | 5079 | .invalid_token, |
| 5080 | 5080 | }); |
| 5081 | 5081 | } |
| ... | ... | @@ -5156,10 +5156,10 @@ test "recovery: missing semicolon" { |
| 5156 | 5156 | \\ @foo |
| 5157 | 5157 | \\} |
| 5158 | 5158 | , &[_]Error{ |
| 5159 | | .expected_token, |
| 5160 | | .expected_token, |
| 5159 | .expected_semi_after_stmt, |
| 5160 | .expected_semi_after_stmt, |
| 5161 | 5161 | .expected_param_list, |
| 5162 | | .expected_token, |
| 5162 | .expected_semi_after_stmt, |
| 5163 | 5163 | }); |
| 5164 | 5164 | } |
| 5165 | 5165 | |
| ... | ... | @@ -5174,9 +5174,9 @@ test "recovery: invalid container members" { |
| 5174 | 5174 | \\} |
| 5175 | 5175 | , &[_]Error{ |
| 5176 | 5176 | .expected_expr, |
| 5177 | | .expected_token, |
| 5177 | .expected_comma_after_field, |
| 5178 | 5178 | .expected_container_members, |
| 5179 | | .expected_token, |
| 5179 | .expected_semi_after_stmt, |
| 5180 | 5180 | }); |
| 5181 | 5181 | } |
| 5182 | 5182 | |
| ... | ... | @@ -5201,7 +5201,7 @@ test "recovery: mismatched bracket at top level" { |
| 5201 | 5201 | \\ arr: 128]?G |
| 5202 | 5202 | \\}; |
| 5203 | 5203 | , &[_]Error{ |
| 5204 | | .expected_token, |
| 5204 | .expected_comma_after_field, |
| 5205 | 5205 | }); |
| 5206 | 5206 | } |
| 5207 | 5207 | |
| ... | ... | @@ -5301,9 +5301,9 @@ test "recovery: missing comma in params" { |
| 5301 | 5301 | \\fn bar(a: i32, b: i32 c) void { } |
| 5302 | 5302 | \\ |
| 5303 | 5303 | , &[_]Error{ |
| 5304 | | .expected_token, |
| 5305 | | .expected_token, |
| 5306 | | .expected_token, |
| 5304 | .expected_comma_after_param, |
| 5305 | .expected_comma_after_param, |
| 5306 | .expected_comma_after_param, |
| 5307 | 5307 | }); |
| 5308 | 5308 | } |
| 5309 | 5309 | |