This commit is contained in:
@@ -9,7 +9,8 @@ from pathlib import Path
|
||||
SOURCE_SUFFIXES = {".f90", ".c", ".h", ".py"}
|
||||
FORTRAN_ROUTINE = re.compile(
|
||||
r"^\s*(?:recursive\s+)?(?:subroutine|function|integer\s+function|"
|
||||
r"logical\s+function|real\s*\([^)]*\)\s+function)\s+([a-zA-Z_]\w*)",
|
||||
r"logical\s+function|real\s*\([^)]*\)\s+function|"
|
||||
r"type\s*\([^)]*\)\s+function)\s+([a-zA-Z_]\w*)",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
PYTHON_FUNCTION = re.compile(r"^(?P<indent>\s*)def\s+(?P<name>[a-zA-Z_]\w*)\s*\(")
|
||||
|
||||
Reference in New Issue
Block a user