diff --git a/fprettify/fparse_utils.py b/fprettify/fparse_utils.py index 68c3f9e..ee1e382 100644 --- a/fprettify/fparse_utils.py +++ b/fprettify/fparse_utils.py @@ -28,7 +28,7 @@ VAR_DECL_RE = re.compile( r"^ *(?Pinteger(?: *\* *[0-9]+)?|logical|character(?: *\* *[0-9]+)?|real(?: *\* *[0-9]+)?|complex(?: *\* *[0-9]+)?|type) *(?P\((?:[^()]+|\((?:[^()]+|\([^()]*\))*\))*\))? *(?P(?: *, *[a-zA-Z_0-9]+(?: *\((?:[^()]+|\((?:[^()]+|\([^()]*\))*\))*\))?)+)? *(?P::)?(?P[^\n]+)\n?", RE_FLAGS) -OMP_COND_RE = re.compile(r"^\s*(!\$ )", RE_FLAGS) +OMP_COND_RE = re.compile(r"^\s*(!\$ ?)", RE_FLAGS) OMP_DIR_RE = re.compile(r"^\s*(!\$OMP)", RE_FLAGS) # supported preprocessors