Source Encoding
Throughout all zig source code (including in comments), some code points are never allowed:
Each LF may be immediately preceded by a single CR (byte value 0x0d, code point U+000d, '\r'
) to form a Windows style line ending, but this is discouraged. A CR in any other context is not allowed.
Note that running zig fmt on a source file will implement all recommendations mentioned here. Note also that the stage1 compiler does control characters.