Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix long function declarations with parentheses in them #65

Merged
merged 2 commits into from
Sep 1, 2023
Merged

Fix long function declarations with parentheses in them #65

merged 2 commits into from
Sep 1, 2023

Conversation

younesaassila
Copy link
Contributor

@younesaassila younesaassila commented Sep 1, 2023

Turns out my fix for #58 from yesterday didn't take into account functions declarations with parens in them like this one:

static void st_merge_fields_in_curr(char *strs[3], t_tok_lst **curr, void (*del)(void *));

This leads to the formatter not detecting them as func declarations and thus not indenting them properly

This fixes the regexes and I've ensured #58 stays fixed

I blame ChatGPT!

@cacharle cacharle merged commit e5d435b into dawnbeen:master Sep 1, 2023
10 checks passed
@younesaassila younesaassila deleted the fix/fn-decl-parens branch September 1, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants