Skip to content

Commit

Permalink
#320 Renamed extended-stop-format to extended-stop-args.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Oct 11, 2024
1 parent bf5ac06 commit b4eef57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fparser/two/Fortran2003.py
Original file line number Diff line number Diff line change
Expand Up @@ -8513,7 +8513,7 @@ class Stop_Code(StringBase): # R850
@staticmethod
def match(string):
result = StringBase.match(pattern.abs_label, string)
if result or not "extended-stop-format" in EXTENSIONS():
if result or not "extended-stop-args" in EXTENSIONS():
return result
# This will allow statements like `stop -1` and `stop str1//str2`
return Level_3_Expr(string)
Expand Down
2 changes: 1 addition & 1 deletion src/fparser/two/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
# While non-standard, many compilers support negative numbers, and string
# operations in stop statements, e.g. `stop -1` or `stop str1//str2`.
# With this extension, these statements will be allowed.
_EXTENSIONS += ["extended-stop-format"]
_EXTENSIONS += ["extended-stop-args"]


def EXTENSIONS():
Expand Down

0 comments on commit b4eef57

Please sign in to comment.