Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 3, 2023
1 parent 1d96212 commit 05d0dd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions c_formatter_42/formatters/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# By: root <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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 #
# #
# **************************************************************************** #

Expand All @@ -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):
Expand Down

0 comments on commit 05d0dd8

Please sign in to comment.