Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: please document that zig do not accept '\t' in the source code file #1182

Closed
bronze1man opened this issue Jun 30, 2018 · 1 comment
Closed
Milestone

Comments

@bronze1man
Copy link

bronze1man commented Jun 30, 2018

I just want to write something and i come across this problem.

The document do not say anything about it.

#544

xxx/h.zig:12:1: error: invalid character: '\t'
        return std.io.getStdOut();
^

For some discussion on the rationale behind these design decisions, see issue #663

@andrewrk andrewrk added this to the 0.4.0 milestone Jun 30, 2018
@nodefish
Copy link

nodefish commented Jul 4, 2018

It's mentioned here: https://ziglang.org/documentation/master/#Source-Encoding

Throughout all zig source code (including in comments), some codepoints are never allowed:

  • Ascii control characters, except for U+000a (LF): U+0000 - U+0009, U+000b - U+0001f, U+007f. (Note that Windows line endings (CRLF) are not allowed, and hard tabs are not allowed.)
  • Non-Ascii Unicode line endings: U+0085 (NEL), U+2028 (LS), U+2029 (PS).

@andrewrk andrewrk closed this as completed Jul 4, 2018
@andrewrk andrewrk modified the milestones: 0.4.0, 0.3.0 Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants