Skip to content

Commit 3321cbc

Browse files
committed
0.3.8 Update
Properly match end of functions/subroutines to also include the name, created problems with interfaces within functions/subroutines
1 parent 6efaf2c commit 3321cbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.3.7'
3+
version = '0.3.8'
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def get_blocksrc(
581581
rstart = re.compile(
582582
r"^\s*%s%s\s+%s\b.*$" %
583583
(ftypes, prefixtype, re.escape(blockname)), re.I).match
584-
rend = re.compile(r"^\s*end\s+%s\b.*$" % prefixtype, re.I).match
584+
rend = re.compile(r"^\s*end\s+%s\s+%s\b.*$" % (prefixtype, re.escape(blockname)), re.I).match
585585
if isinstance(stopmatch, str):
586586
stopmatch = re.compile(stopmatch).match
587587

0 commit comments

Comments
 (0)