Skip to content

Commit 37fbb26

Browse files
committed
0.5.5 Update
Better regex for interfaces
1 parent 2848c80 commit 37fbb26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'sphinxfortran_ng'
3-
version = '0.5.4'
3+
version = '0.5.5'
44
authors = [{name = "Lorenzo Crippa", email="[email protected]"}]
55
description = "An improved version of the sphinx-fortran python module"
66
readme = "README.md"

src/sphinxfortran_ng/fortran_autodoc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ def get_blocksrc(
581581
prefixtype = blocktype
582582
if blocktype == 'interface': #special case for operator overload
583583
rstart = re.compile(
584-
r"^\s*%s%s\s+%s.*$" %
584+
#r"^\s*%s%s\s+%s.*$" %
585+
r"^\s*%s%s\s+%s(?=\s|$|\()" %
585586
(ftypes, prefixtype, re.escape(blockname)), re.I).match
586587
rend = re.compile(r"^\s*end\s+%s.*$" % prefixtype, re.I).match
587588
else:

0 commit comments

Comments
 (0)