mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
StringTree: Respect quoted quotes
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
4a200c8851
commit
3d93d534db
3 changed files with 17 additions and 11 deletions
|
|
@ -59,7 +59,7 @@ class CmdBeautify(TrimSourceCmd):
|
|||
r = ''
|
||||
indent = args.indent_assignments
|
||||
for line in contents.splitlines(True):
|
||||
m = re.match(r'^ *([a-zA-Z_][a-zA-Z0-9_]*)\s*([?+]*)(=)\s*(.*)', line)
|
||||
m = re.match(r'^ *([a-zA-Z_][a-zA-Z0-9_]*)\s*([?+:]*)(=)\s*(.*)', line)
|
||||
if m is None:
|
||||
r += line
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue