Skip to content

Commit f5cabbd

Browse files
authored
fix block regular expression
1 parent 78ad649 commit f5cabbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortls/regex_patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FortranRegularExpressions:
4040
SUBMOD: Pattern = compile(r"[ ]*SUBMODULE[ ]*\(", I)
4141
END_SMOD: Pattern = compile(r"SUBMODULE", I)
4242
END_PRO: Pattern = compile(r"(MODULE)?[ ]*PROCEDURE", I)
43-
BLOCK: Pattern = compile(r"[ ]*([a-z_]\w*[ ]*:[ ]*)?BLOCK|CRITICAL(?!\w)", I)
43+
BLOCK: Pattern = compile(r"[ ]*([a-z_]\w*[ ]*:[ ]*)?(BLOCK|CRITICAL)(?!\w)", I)
4444
END_BLOCK: Pattern = compile(r"BLOCK|CRITICAL", I)
4545
DO: Pattern = compile(r"[ ]*(?:[a-z_]\w*[ ]*:[ ]*)?DO([ ]+[0-9]*|$)", I)
4646
END_DO: Pattern = compile(r"DO", I)

0 commit comments

Comments
 (0)