8000 MAINT: Update END statement parsing for recent Fortran standards. Clo… · numpy/numpy@e6dab4f · GitHub
[go: up one dir, main page]

Skip to content

Commit e6dab4f

Browse files
committed
MAINT: Update END statement parsing for recent Fortran standards. Closes #2763
1 parent ba4eab8 commit e6dab4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy/f2py/crackfortran.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@ def readfortrancode(ffile, dowithline=show, istop=1):
560560
r'endinterface|endsubroutine|endfunction')
561561
endpattern = re.compile(
562562
beforethisafter % ('', groupends, groupends, r'[\w\s]*'), re.I), 'end'
563-
# endifs='end\s*(if|do|where|select|while|forall 53FF )'
564-
endifs = r'(end\s*(if|do|where|select|while|forall))|(module\s*procedure)'
563+
endifs = r'(end\s*(if|do|where|select|while|forall|associate|block|critical|enum|team))|(module\s*procedure)'
565564
endifpattern = re.compile(
566565
beforethisafter % (r'[\w]*?', endifs, endifs, r'[\w\s]*'), re.I), 'endif'
567566
#

0 commit comments

Comments
 (0)
0