mlugg 0cc8435a83
std.zig: resolve syntactic ambiguity
The parse of `fn foo(a: switch (...) { ... })` was previously handled
incorrectly; `a` was treated as both the parameter name and a label.

The same issue exists for `for` and `while` expressions -- they should
be fixed too, and the grammar amended appropriately. This commit does
not do this: it only aims to avoid introducing regressions from labeled
switch syntax.
2024-09-01 18:30:31 +01:00
..
2024-08-29 23:43:52 +01:00
2024-08-29 20:39:11 +01:00
2024-08-07 00:48:32 -07:00
2024-02-23 02:37:11 -07:00
2024-07-23 11:43:12 -07:00
2024-08-15 22:05:53 -07:00
2024-09-01 18:30:31 +01:00
2024-07-02 16:31:15 +02:00
2024-03-10 18:13:30 -07:00
2024-07-09 14:25:42 -07:00
2024-03-10 18:13:30 -07:00
2024-08-22 08:44:08 +02:00
2024-08-29 20:39:11 +01:00
2024-03-21 14:11:46 -07:00
2024-02-05 11:55:14 +03:30
2024-07-19 00:30:32 -07:00
2024-08-07 00:48:32 -07:00
2024-07-31 16:57:42 -07:00
2024-08-29 20:39:11 +01:00
2024-07-19 00:30:32 -07:00
2024-07-19 00:30:32 -07:00
2024-08-29 23:43:52 +01:00
2024-07-09 14:25:42 -07:00
2024-08-15 22:05:53 -07:00
2024-07-19 00:30:32 -07:00
2024-08-23 22:59:30 -07:00
2024-06-17 16:12:19 -04:00