-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Sep 3, 2023
1 parent
1d96212
commit 05d0dd8
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 # | ||
# # | ||
# **************************************************************************** # | ||
|
||
|
@@ -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): | ||
|