aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-04-29 02:25:54 +0100
committermlugg <mlugg@mlugg.co.uk>2024-09-01 18:30:31 +0100
commit0cc8435a830d9d3850add163be4f12e5bd4f2f5c (patch)
treef2b11a2c14628ed80865e6336ef2237504a107a7 /src/codegen/spirv
parent5e12ca9fe3c77ce1d2a3ea1c22c4bcb6d9b2bb0c (diff)
downloadzig-0cc8435a830d9d3850add163be4f12e5bd4f2f5c.tar.gz
zig-0cc8435a830d9d3850add163be4f12e5bd4f2f5c.zip
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.
Diffstat (limited to 'src/codegen/spirv')
0 files changed, 0 insertions, 0 deletions