From 05d0dd8f415175ce4199e8639749665a26d458b8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 3 Sep 2023 11:06:32 +0200 Subject: [PATCH] black --- c_formatter_42/formatters/helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/c_formatter_42/formatters/helper.py b/c_formatter_42/formatters/helper.py index 6b70dd7..71f4b21 100644 --- a/c_formatter_42/formatters/helper.py +++ b/c_formatter_42/formatters/helper.py @@ -6,7 +6,7 @@ # By: root +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/10/04 11:38:00 by cacharle #+# #+# # -# Updated: 2023/09/02 23:13:44 by root ### ########.fr # +# Updated: 2023/09/03 11:05:57 by root ### ########.fr # # # # **************************************************************************** # @@ -17,7 +17,9 @@ # regex for a c variable/function name REGEX_NAME = r"\**[a-zA-Z_*()]\w*" # regex for a name in a declaration context (with array and function ptr) -REGEX_DECL_NAME = r"\(?{name}(\[.*\])*(\s\=\s{{.*}})?(\)\(.*\))?".format(name=REGEX_NAME) +REGEX_DECL_NAME = r"\(?{name}(\[.*\])*(\s\=\s{{.*}})?(\)\(.*\))?".format( + name=REGEX_NAME +) def locally_scoped(func):