From 983c9f0dc27cba9b75c480fd9fcede714f3dfa10 Mon Sep 17 00:00:00 2001 From: Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:15:58 -0800 Subject: [PATCH] fparse_utils.py: Make space after '!\$' in OMP_COND_RE optional --- fprettify/fparse_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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