PY-31442 Better handling of single backslashes (e.g. before braces) in literal parts

There is actually no need to match them together with braces and then return
the second character back to the stream. The longest match rule will ensure
that all allowed escape sequences will be recognised as one unit, so it seems
safe to match backslash individually for all remaining cases.
This commit is contained in:
Mikhail Golubev
2018-10-01 12:46:45 +03:00
parent 2e8b9f7a9f
commit 6c49b63b11
4 changed files with 399 additions and 409 deletions
File diff suppressed because it is too large Load Diff