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:
parent
6f6d8d0a2a
commit
bcfc768b7a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user