From 7e7b874568bb08b8f22fc38f15df40aafa6571ef Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Fri, 26 May 2006 14:34:15 +0000 Subject: Fixed new fortran reader and parser bugs. --- numpy/f2py/lib/readfortran.py | 80 ++++++++++++++++++++++++++++++------------- 1 file changed, 56 insertions(+), 24 deletions(-) (limited to 'numpy/f2py/lib/readfortran.py') diff --git a/numpy/f2py/lib/readfortran.py b/numpy/f2py/lib/readfortran.py index 4937cb4b3..658d69804 100644 --- a/numpy/f2py/lib/readfortran.py +++ b/numpy/f2py/lib/readfortran.py @@ -32,7 +32,7 @@ from splitline import LineSplitter, String, string_replace_map _spacedigits=' 0123456789' _cf2py_re = re.compile(r'(?P\s*)!f2py(?P.*)',re.I) -_is_fix_cont = lambda line: line and len(line)>5 and line[5]!=' ' and line[0]==' ' +_is_fix_cont = lambda line: line and len(line)>5 and line[5]!=' ' and line[:5]==5*' ' _is_f90_cont = lambda line: line and '&' in line and line.rstrip()[-1]=='&' _f90label_re = re.compile(r'\s*(?P