-
Notifications
You must be signed in to change notification settings - Fork 349
Manage case indent #250
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
Manage case indent #250
Conversation
|
Do I need to improve my commits ? |
|
fwiw, I tested this and it works well. |
* Multi case
* half indent for case
* indent when typing : in case
case is now use as a block delimiter
Before:
switch(name) {
case 1:
break;
case 2:
a = b;
foo();
bar();
break;
case 4:
case 3:
if (true) {
foo();
}
bar();
c = d;
break;
default:
foo();
break;
}
After:
switch(name) {
case 1:
break;
case 2:
a = b;
foo();
bar();
break;
case 4:
case 3:
if (true) {
foo();
}
bar();
c = d;
break;
default:
foo();
break;
}
:N Place case labels N characters from the indent of the switch().
(default 'shiftwidth').
=N Place statements occurring after a case label N characters from
the indent of the label. (default 'shiftwidth').
(Same as default cindent)
|
I have rebased my work, merge is now fixed |
|
thanks! |
|
Hi, I happen to have the same issue, however, this wasn't merged into master (yet). Can you merge it ? |
|
Is this not in master yet? If not we should really do a merge. On Tue, 22 Sep 2015 05:05 netei notifications@github.com wrote:
|
|
The latest commit on master is on Jun 15, this merge request has been merged in July |
|
Okay, I'll call for a merge into master. See #304 |
case is now use as a block delimiter
#195 should be fixed
Before:
After:
with
set cinoptions+=:2,=2with
set cinoptions+=:0,=4