Skip to content

Commit 03109e4

Browse files
committed
HACK: don't choke on 'type is' constructs
1 parent 6193c1c commit 03109e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sphinxfortran/crackfortran.py

+1
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ def crackline(line, reset=0):
652652
global skipblocksuntil, skipemptyends, previous_context, gotnextfile
653653

654654
line = line.replace('class', 'type') # DIRTY HACK
655+
line = line.replace('type is', 'xxx is') # (yet another) DIRTY HACK
655656

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

0 commit comments

Comments
 (0)