zig
zig copied to clipboard
Correctly handle carriage return characters according to the spec
Taking guidance from: ziglang/zig-spec#38, carriage returns are now allowed preceding line-feeds when found in doc-comments or multiline strings. The CRLF is also only interpreted as a newline in this case. However - they are otherwise rejected when found in any other context except when used as plain whitespace.
This resolves #11414.
I've added a couple of tests that should hopefully do the trick, one to check the case that should work and the other to test the case that should error.
CI checks are failing
Yeah - I haven't had the time to address those test issues for the the past while, but should hopefully be able to at the end of this week if that's ok :) Sorry for the delay on this one!
Things should be fixed now! Ended up being something really simple, but only just had the time to get to it now.
Are there any further changes desired here? Just double checking as I might have some time available to act on feedback this month if needed.
Just resolved the merge conflicts that I saw had cropped-up (hopefully :crossed_fingers:)