Closed bobf closed 2 months ago
Duplicate of #20900.
This it not a bug but rather just a very poor and unhelpful error message; there's a tab character in the line comment (replaced with a control picture for clarity):
// ␉.source_file = .{.path = "../websocket.zig/src/websocket.zig"}
Tabs in comments have always been in violation of the spec (https://github.com/ziglang/zig-spec/issues/38) but only recently was the tokenizer updated to conform to the spec, see #20885.
@castholm Thanks for the explanation. :+1:
Zig Version
0.14.0-dev.1166+bb7050106
Steps to Reproduce and Observed Behavior
Compiling this
build.zig
:Gives this error:
@karlseguin FYI
Expected Behavior
Compiler does not error when evaluating commented code.