From 81fdc942232f14ede284d12fb708628efe28db0f Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Tue, 5 Dec 2023 23:04:37 +0000 Subject: [PATCH] Fix regex in fprettify --- fprettify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fprettify/__init__.py b/fprettify/__init__.py index d01e89d6..a0d08262 100644 --- a/fprettify/__init__.py +++ b/fprettify/__init__.py @@ -269,7 +269,7 @@ def split(self, line): LR_OPS_RE = [REL_OP_RE, LOG_OP_RE, plusminus_parser(PLUSMINUS_RE), MULTDIV_RE, PRINT_RE] USE_RE = re.compile( - SOL_STR + "USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS) + SOL_STR + r"USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS) # markups to deactivate formatter NO_ALIGN_RE = re.compile(SOL_STR + r"&\s*[^\s*]+")