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

protoc: accept capital X to indicate hex escape in string literals #10757

Merged
merged 2 commits into from Oct 10, 2022

Conversation

jhump
Copy link
Contributor

@jhump jhump commented Oct 10, 2022

Fixes #10756.

Allows use of capital X to initiate a hex escape in a string literal. This is already documented to work on the developer site, but it didn't actually work.

Note that protoc actually supports either one or two digits following the \X (or \x), but the documentation on the developer site suggests that two hex digits are always required. I think it's reasonable to assert that is a documentation bug and the lenience should be kept (especially since changing it would be a breaking change).

@jhump
Copy link
Contributor Author

jhump commented Oct 10, 2022

cc @fowles

@jhump jhump changed the title Jh/accept capital x protoc: accept capital X to indicate hex escape in string literals Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

protoc: doesn't accept capital X in hex escapes in string literals
3 participants