Skip to content

Conversation

@zsol
Copy link
Contributor

@zsol zsol commented Jun 15, 2022

Summary

In Python it's allowed to escape ' and " even in raw strings using \. This PR makes the tokenizer accept these strings.

Fixes #668.

Test Plan

Added unit tests.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 15, 2022
Copy link
Contributor

@bgw bgw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@zsol zsol merged commit 4c9728a into Instagram:main Jun 16, 2022
@zsol zsol deleted the issue-668 branch June 16, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Escaping quote characters in raw string literals causes a tokenizer error

3 participants