summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2011-03-27 13:26:05 +0300
committerPearu Peterson <pearu.peterson@gmail.com>2011-03-27 13:26:05 +0300
commit225f28c7cffc2ec4914cf34b9abf6c121cb990a8 (patch)
tree319a8c52d68a9351d6eec540982669cf918e42a3 /numpy/f2py
parentf2419c0e5781b3e6b2c8380e71dbbc5ec40781e7 (diff)
downloadnumpy-225f28c7cffc2ec4914cf34b9abf6c121cb990a8.tar.gz
BUG: f2py fix to scan literal strings with ! character, fixes ticket #1228
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-xnumpy/f2py/crackfortran.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index 6b707a5c5..7b9dc08ac 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -283,7 +283,7 @@ def readfortrancode(ffile,dowithline=show,istop=1):
cont=0
finalline=''
ll=''
- commentline=re.compile(r'(?P<line>([^"]*"[^"]*"[^"!]*|[^\']*\'[^\']*\'[^\'!]*|[^!]*))!{1}(?P<rest>.*)')
+ commentline=re.compile(r'(?P<line>([^"]*["][^"]*["][^"!]*|[^\']*\'[^\']*\'[^\'!]*|[^!\'"]*))!{1}(?P<rest>.*)')
includeline=re.compile(r'\s*include\s*(\'|")(?P<name>[^\'"]*)(\'|")',re.I)
cont1=re.compile(r'(?P<line>.*)&\s*\Z')
cont2=re.compile(r'(\s*&|)(?P<line>.*)')