http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/token_r.py Mercurial Repository: p/roundup/code: roundup/token_r.py history 2024-04-06T20:37:45-04:00 feat: can use escaped tokens inside quotes including quotes. http://hg.code.sf.net:8000/p/roundup/code/#changeset-9a74dfeb862057d0dcf2b433aeb045a8a8150baf John Rouillard rouilj@ieee.org 2024-04-06T20:37:45-04:00 2024-04-06T20:37:45-04:00
changeset 9a74dfeb8620
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: can use escaped tokens inside quotes including quotes.

Change tokenizer to support:

cmd with arg "string with embedded \" double quote"

works for single quotes too. Mixed quotes can skip the \" or \'
escaping.

Also:

quoted cmds args "can include \n newline, \t tab and \r return"

Added a doc example, also tests for new feature.
files
flake8 fixes: whitespace, remove unused imports http://hg.code.sf.net:8000/p/roundup/code/#changeset-07ce4e4110f587bf6a878f9c15a9cb22537969ed John Rouillard rouilj@ieee.org 2023-03-18T14:16:31-04:00 2023-03-18T14:16:31-04:00
changeset 07ce4e4110f5
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description flake8 fixes: whitespace, remove unused imports
files
unshadow stdlib token from roundup's token. http://hg.code.sf.net:8000/p/roundup/code/#changeset-db06d4aeb9787512878302d1ba3dfe2a4342bbf2 John Rouillard rouilj@ieee.org 2023-02-26T12:00:35-05:00 2023-02-26T12:00:35-05:00
changeset db06d4aeb978
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description unshadow stdlib token from roundup's token.

This bites me every now and again when running pytest and pdb. Some
submodules want to load the stdlib python and end up getting roundup's
python and thing break with N_TOKENS not defined etc.

So rename token.py to token_r.py (token_r(oundup)... hey naming things
is hard) an change code as needed.
files