mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 04:13:33 +01:00
Bug with "THEN" => lowercased
This commit is contained in:
parent
2731349781
commit
bc326473b3
@ -449,7 +449,7 @@ check_opt()
|
|||||||
######################################################################
|
######################################################################
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
for i in range(len(parsed_text)):
|
for i in range(len(parsed_text)):
|
||||||
if parsed_text[i][0] == 'properties.irp.f':
|
if parsed_text[i][0] == 'intmul.irp.f':
|
||||||
print '!-------- %s -----------'%(parsed_text[i][0])
|
print '!-------- %s -----------'%(parsed_text[i][0])
|
||||||
for line in parsed_text[i][1]:
|
for line in parsed_text[i][1]:
|
||||||
print line[1]
|
print line[1]
|
||||||
|
@ -691,7 +691,7 @@ endif'''
|
|||||||
result = []
|
result = []
|
||||||
for line in text:
|
for line in text:
|
||||||
if isinstance(line,If):
|
if isinstance(line,If):
|
||||||
if line.text.endswith("then"):
|
if line.text.lower().endswith("then"):
|
||||||
result.append(line)
|
result.append(line)
|
||||||
else:
|
else:
|
||||||
buffer = line.text
|
buffer = line.text
|
||||||
|
Loading…
Reference in New Issue
Block a user