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-28 18:07:13 -07:00
2024-08-18 14:23:49 -07:00
2024-05-08 19:37:29 -07:00
2024-09-01 18:30:31 +01:00
2024-06-16 11:53:33 +02:00