Skip to content

Commit

Permalink
BUG: f2py fix to scan literal strings with ! character, fixes ticket #…
Browse files Browse the repository at this point in the history
  • Loading branch information
pearu committed Mar 27, 2011
1 parent f2419c0 commit 225f28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/f2py/crackfortran.py
Expand Up @@ -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>.*)')
Expand Down

0 comments on commit 225f28c

Please sign in to comment.