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-09-01 18:30:31 +01:00
2024-09-01 18:30:31 +01:00
2024-07-31 16:57:42 -07:00
2024-08-31 20:49:24 -07:00