From e6d4028a84d0e9b9835c38f57b5b0d4bbc101394 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Zig source code is encoded in UTF-8. An invalid UTF-8 byte sequence results in a compile error.
-Throughout all zig source code (including in comments), some codepoints are never allowed:
-The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).
-For some discussion on the rationale behind these design decisions, see issue #663
- {#header_close#} {#header_open|Values#} {#code_begin|exe|values#} const std = @import("std"); @@ -5627,6 +5617,16 @@ fn readU32Be() u32 {} {#header_close#} {#header_close#} + {#header_open|Source Encoding#} +Zig source code is encoded in UTF-8. An invalid UTF-8 byte sequence results in a compile error.
+Throughout all zig source code (including in comments), some codepoints are never allowed:
+The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).
+For some discussion on the rationale behind these design decisions, see issue #663
+ {#header_close#} {#header_open|Grammar#}Root = many(TopLevelItem) EOF