Closed
Description
Hi,
(This report is based on the v0.1.1 Win64 binary artifact from the Zig website.)
I noticed that if I create a Zig source file in Windows with a native editor (eg Notepad), the compiler complains about line endings:
$ zig build-exe hello.zig
':\code\zig\first\hello.zig:1:30: error: invalid character: '
const io = @import("std").io;
^
If I manually kill the newlines (resulting in the code being all on one line) it compiles.
I tried using Vim in a Cygwin shell and the file it wrote also compiled without complaint (presumably Unix-style newlines, as Notepad renders that file on one line while Vim looks correct).