Skip to content

Feature Request: sp_after_ellipsis (Ellipsis in Obj-C) #1213

@ferologics

Description

@ferologics

I'm using the ... in a case statement

switch (foo)
{
  case 0 ... 1: break;
}

Uncrustify will remove the spaces around the operator:

switch (foo)
{
  case 0...1: break;
}

This causes error:
uncrustify_error

What can I use to change the behavior? I googled this for 20 minutes without any results.

EDIT: It also adds a space after the - eg.

switch (foo)
{
  case -10...- 20: break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    NoAnswerIssues closed due to insufficient details provided by the reporter.Objective C

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions