mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 20:03:33 +01:00
:if: changed to : if : in preprocessed text
This commit is contained in:
parent
6f6d8d0a2a
commit
bcfc768b7a
@ -355,7 +355,7 @@ def add_operators(text):
|
|||||||
for line in text:
|
for line in text:
|
||||||
buffer = line.text
|
buffer = line.text
|
||||||
if "+=" in buffer:
|
if "+=" in buffer:
|
||||||
if "if" in buffer:
|
if " if " in buffer:
|
||||||
re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
|
re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
|
||||||
line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
|
line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user