mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 20:03:33 +01:00
Bug with parentheses
This commit is contained in:
parent
a0fb70b15f
commit
f08f90321b
@ -545,5 +545,5 @@ if __name__ == '__main__':
|
||||
for line in parsed_text[i][1]:
|
||||
print line[1]
|
||||
print line[0], line[1].filename
|
||||
for i in subroutines:
|
||||
print i, subroutines[i].needs, subroutines[i].to_provide
|
||||
#for i in subroutines:
|
||||
# print i, subroutines[i].needs, subroutines[i].to_provide
|
||||
|
@ -107,7 +107,7 @@ def get_type (i, filename, line, is_doc):
|
||||
lower_line = re_endif.sub("endif",lower_line)
|
||||
lower_line = re_endselect.sub("endselect",lower_line)
|
||||
for c in """()'"[]""":
|
||||
lower_line = lower_line.replace(c," ")
|
||||
lower_line = lower_line.replace(c," "+c+" ")
|
||||
|
||||
buffer = lower_line.split()
|
||||
if len(buffer) == 0:
|
||||
@ -854,6 +854,7 @@ preprocessed_text = parallel_loop( lambda x,y: create_preprocessed_text(x), \
|
||||
######################################################################
|
||||
def debug():
|
||||
for filename, txt in preprocessed_text:
|
||||
if filename == 'jastrow_large.irp.f':
|
||||
print "=== "+filename+" ==="
|
||||
for line in txt:
|
||||
print line
|
||||
|
Loading…
Reference in New Issue
Block a user