diff --git a/ford/sourceform.py b/ford/sourceform.py index 352a711c..a0bb0bd2 100644 --- a/ford/sourceform.py +++ b/ford/sourceform.py @@ -442,7 +442,7 @@ def markdown(self, md: MetaMarkdown): if self.obj in ["proc", "type", "program"] and self.meta.source: obj = getattr(self, "proctype", self.obj).lower() regex = re.compile( - fr""" + rf""" ^(?:[\w(),*: \t]*?)? # Attributes, function type \b{obj}\b # Subroutine/function (?:[\w(),*: \t]+?)?[ \t]+ # Interstitial nonsense