Skip to content

Commit

Permalink
f2py: disallow matching module procedure-s as module-s.
Browse files Browse the repository at this point in the history
  • Loading branch information
pearu committed May 15, 2008
1 parent a0cdbc6 commit a6f2148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/f2py/crackfortran.py
Expand Up @@ -456,7 +456,7 @@ def readfortrancode(ffile,dowithline=show,istop=1):
#
groupbegins77=r'program|block\s*data'
beginpattern77=re.compile(beforethisafter%('',groupbegins77,groupbegins77,'.*'),re.I),'begin'
groupbegins90=groupbegins77+r'|module|python\s*module|interface|type(?!\s*\()'
groupbegins90=groupbegins77+r'|module(?!\s*procedure)|python\s*module|interface|type(?!\s*\()'
beginpattern90=re.compile(beforethisafter%('',groupbegins90,groupbegins90,'.*'),re.I),'begin'
groupends=r'end|endprogram|endblockdata|endmodule|endpythonmodule|endinterface'
endpattern=re.compile(beforethisafter%('',groupends,groupends,'[\w\s]*'),re.I),'end'
Expand Down

0 comments on commit a6f2148

Please sign in to comment.