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(
13811381 file_ast .end_scope_regex == FRegex .END_SELECT
13821382 and (
13831383 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 )
13851385 )
13861386 is not None
13871387 ):
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ class FortranRegularExpressions:
148148 )
149149 ELSE_IF : Pattern = compile (r"(^|.*\s)(ELSE$|ELSE(\s)|ELSEIF(\s*\())" , I )
150150 SELECT_CASE : Pattern = compile (r"((^|\s*\s)(CASE)(\s*\())" , I )
151+ CASE_DEFAULT : Pattern = compile (r"[ ]*CASE[ ]+DEFAULT" , I )
151152 # Object regex patterns
152153 CLASS_VAR : Pattern = compile (r"(TYPE|CLASS)[ ]*\(" , I )
153154 DEF_KIND : Pattern = compile (r"(\w*)[ ]*\((?:KIND|LEN)?[ =]*(\w*)" , I )
You can’t perform that action at this time.
0 commit comments