File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1381,7 +1381,7 @@ def parse(
1381
1381
file_ast .end_scope_regex == FRegex .END_SELECT
1382
1382
and (
1383
1383
FRegex .SELECT_CASE .match (line_no_comment )
1384
- or FRegex .SELECT_DEFAULT .match (line_no_comment )
1384
+ or FRegex .CASE_DEFAULT .match (line_no_comment )
1385
1385
)
1386
1386
is not None
1387
1387
):
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ class FortranRegularExpressions:
148
148
)
149
149
ELSE_IF : Pattern = compile (r"(^|.*\s)(ELSE$|ELSE(\s)|ELSEIF(\s*\())" , I )
150
150
SELECT_CASE : Pattern = compile (r"((^|\s*\s)(CASE)(\s*\())" , I )
151
+ CASE_DEFAULT : Pattern = compile (r"[ ]*CASE[ ]+DEFAULT" , I )
151
152
# Object regex patterns
152
153
CLASS_VAR : Pattern = compile (r"(TYPE|CLASS)[ ]*\(" , I )
153
154
DEF_KIND : Pattern = compile (r"(\w*)[ ]*\((?:KIND|LEN)?[ =]*(\w*)" , I )
You can’t perform that action at this time.
0 commit comments