Skip to content

Commit dedbf17

Browse files
committed
HACK: ignore [end ]interface statements
1 parent 0eeb034 commit dedbf17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sphinxfortran/crackfortran.py

+2
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ def crackline(line, reset=0):
653653

654654
line = line.replace('class', 'type') # DIRTY HACK
655655
line = line.replace('type is', 'xxx is') # (yet another) DIRTY HACK
656+
if line.strip() in ['interface', 'end interface']:
657+
line = '\n'
656658

657659
_, has_semicolon = split_by_unquoted(line, ";")
658660
if has_semicolon and not (f2pyenhancementspattern[0].match(line) or

0 commit comments

Comments
 (0)