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

Improve invalid escape sequence error messages #328

Merged
merged 1 commit into from
Jul 1, 2018

Conversation

casey
Copy link
Owner

@casey casey commented Jul 1, 2018

The invalid escape sequence error message is delimited with backticks and isn't used as input to other programs, so tweak the escaping rules slightly when printing invalid escape sequences. In particular, `, , ', and " should not be escaped.

Improves one of the messages that @runimp saw in #327

The invalid escape sequence error message is delimited with backticks
and isn't used as input to other programs, so tweak the escaping rules
slightly when printing invalid escape sequences. In particular, `, \, ',
and " should not be escaped.
@casey casey merged commit 438b514 into master Jul 1, 2018
@casey casey deleted the invalid-escape-message branch July 1, 2018 02:19
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

Successfully merging this pull request may close these issues.

1 participant