Skip to content

Commit 33d15f7

Browse files
committed
HACK: replace "class" by "type" to deal with TPB
1 parent 3e92585 commit 33d15f7

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
@@ -651,6 +651,8 @@ def crackline(line, reset=0):
651651
global filepositiontext, currentfilename, neededmodule, expectbegin
652652
global skipblocksuntil, skipemptyends, previous_context, gotnextfile
653653

654+
line = line.replace('class', 'type') # DIRTY HACK
655+
654656
_, has_semicolon = split_by_unquoted(line, ";")
655657
if has_semicolon and not (f2pyenhancementspattern[0].match(line) or
656658
multilinepattern[0].match(line)):

0 commit comments

Comments
 (0)