We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee0cf1b commit 066988cCopy full SHA for 066988c
fprettify/__init__.py
@@ -463,11 +463,7 @@ def build_scope_parser(fypp=True, mod=True):
463
"lock_type", "atomic_int_kind", "atomic_logical_kind",
464
)) + r")\b", RE_FLAGS)
465
466
-F90_INT_RE = r"[-+]?[0-9]+"
467
-F90_FLOAT_RE = r"[-+]?([0-9]+\.[0-9]*|\.[0-9]+)"
468
-F90_NUMBER_RE = "(" + F90_INT_RE + "|" + F90_FLOAT_RE + ")"
469
-F90_FLOAT_EXP_RE = F90_NUMBER_RE + r"[eEdD]" + F90_NUMBER_RE
470
-F90_NUMBER_ALL_RE = "(" + F90_NUMBER_RE + "|" + F90_FLOAT_EXP_RE + ")"
+F90_NUMBER_ALL_RE = r"[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)([dDeE][-+]?[0-9]+)?"
471
F90_NUMBER_ALL_REC = re.compile(F90_NUMBER_ALL_RE, RE_FLAGS)
472
473
## F90_CONSTANTS_TYPES_RE = re.compile(r"\b" + F90_NUMBER_ALL_RE + "_(" + "|".join([a + r"\b" for a in (
0 commit comments