Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG: Fix crackfortran parsing error when a division occurs within a common block #28396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 2, 2025
Merged
Prev Previous commit
Next Next commit
Use regular expression to find common block name
  • Loading branch information
nchristensen committed Mar 28, 2025
commit d53294fcb7b805f50e95269eefdb6970fea6559b
12 changes: 6 additions & 6 deletions 12 numpy/f2py/crackfortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -1494,12 +1494,12 @@ def analyzeline(m, case, line):
f = 0
bn = ''
ol = ''
nslash = 0
for c in line:
if c == '/' and nslash < 2:
f = f + 1
nslash = nslash + 1
continue

# Find the /<common block name>/ and split the string at
# that location.
split_line = re.split(r'\s*/[A-Za-z_]*[A-Za-z0-9_]*/', line)

for c in split_line[-1]:
if f >= 3:
bn = bn.strip()
if not bn:
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.