10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

:if: changed to : if : in preprocessed text

This commit is contained in:
Anthony Scemama 2013-07-02 17:01:16 +02:00
parent 6f6d8d0a2a
commit bcfc768b7a

View File

@ -355,7 +355,7 @@ def add_operators(text):
for line in text:
buffer = line.text
if "+=" in buffer:
if "if" in buffer:
if " if " in buffer:
re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
else: