Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: f2py fix to scan literal strings with ! character, fixes ticket #…

  • Loading branch information...
commit 225f28c7cffc2ec4914cf34b9abf6c121cb990a8 1 parent f2419c0
@pearu pearu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  numpy/f2py/crackfortran.py
View
2  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>.*)')
Please sign in to comment.
Something went wrong with that request. Please try again.