Python string escape tokens #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "python-string-escape-tokens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My attempt at resolving #20. This should be ready for review.
Thank you!
This is to support Replit efforts, fwiw. Thank you again!
@ -110,6 +114,25 @@ export const legacyPrint = new ExternalTokenizer(input => {}this should probably not be a regex, as I'm reviewing it. I'll change it to
char === quote || char === '\\'as well@ -110,6 +114,25 @@ export const legacyPrint = new ExternalTokenizer(input => {}Resolved
I've pushed an alternative patch
798669d6abthat properly handles multi-character escapes (\u,\N, etc) and raw strings. Had to use a kludge with a context to keep the amount of different string tokenizers under control (raw/non-raw, single/double quoted, format/non-format, long/short = 16 different types of string content).Pull request closed