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

Inconsistency in description of string literals #532

Open
nneonneo opened this issue Nov 12, 2024 · 0 comments
Open

Inconsistency in description of string literals #532

nneonneo opened this issue Nov 12, 2024 · 0 comments

Comments

@nneonneo
Copy link
Contributor

nneonneo commented Nov 12, 2024

In the description of various string literals (on lexical-elements.rst):

  • RawByteStringContent is specified as taking arbitrary AsciiCharacters. This isn't true - 0x0D (CR) is still rejected, and AsciiCharacter is specified as "any Unicode character in the range 0x00 - 0x7F, both inclusive", without specifically excluding 0x0D. Note that SimpleByteStringLiteral is defined instead in terms of SimpleByteStringCharacter, which is specified to be AsciiCharacter minus 0x0D, 0x22, and 0x5C.
  • RawCStringContent is specified as taking any characters except 0x0D (CR) (" ~[\r]* "), but raw C string literals also can't contain 0x00 (NUL).
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

1 participant