Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
skosukhin committed Apr 30, 2024
1 parent cb616d5 commit 7bb0a42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mkhelper/depgen/fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ class Parser:
r"^\s*use(?:\s+|(?:\s*,\s*((?:non_)?intrinsic))?\s*::\s*)(\w+)", re.I
)
_re_module_end = re.compile(r"^\s*end\s+module(?:\s+(\w+))?\s*$", re.I)
_re_module_subprogram = re.compile(
r"^(?!['\"]).*"
r"module"
r"\s+(?:(?:elemental|recursive|(?:im)?pure)\s+)*"
r"(?:subroutine|function)",
re.I,
)

def __init__(
self,
Expand Down Expand Up @@ -84,6 +91,7 @@ def __init__(
self.module_start_callback = None
self.submodule_start_callback = None
self.module_use_callback = None
self.module_subprogram_callback = None
self.debug_callback = None

self._include_finder = IncludeFinder(include_order, include_dirs)
Expand Down

0 comments on commit 7bb0a42

Please sign in to comment.