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

Objc msg colon incorrectly labeled as conditional colon #4304

Open
PoeticPete opened this issue May 27, 2024 · 0 comments
Open

Objc msg colon incorrectly labeled as conditional colon #4304

PoeticPete opened this issue May 27, 2024 · 0 comments

Comments

@PoeticPete
Copy link
Contributor

On current master d8c58ec, if we try to format the following code:

static void func() {
    [NSObject doStuff:true ? 1 : 0
               param2:@"test"
               param3:@"test2"];
}

It incorrectly turns into:

static void func() {
    [NSObject doStuff:true ? 1 : 0
     param2 : @"test"
               param3:@"test2"];
}

Using the following cfg:

sp_cond_colon                   = force
align_oc_msg_colon_span         = 1
indent_columns                  = 4
indent_with_tabs                = 0
indent_ternary_operator         = 2

I will publish a fix soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants