You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sometimes I have several longish arguments/expressions to a function call so I want to break the function call into something like (manually formatted):
the following is formatted with 'gg=G' with vim-javascript indenter:
/*
* the arguments below are short to make a more readable test case, but the
* point of this formatting is to be able to break function calls with long
* arguments...
*/
fun(1,
2,
3);
// doesn't return
fun(1,
2,
3
);
// doesn't either
fun(
1,
2,
3);
// again
fun(
1,
2,
3
);
// this is the only one working, but even it breaks in some contexts
switch(foo) {
case 1:
here(
1,
2, // why????
);
here(
1,
2,
3
); // seems recovered, but it's misindented
break;
case 2:
here(
1,
2
); // so it breaks after each case
break;
}
I'd be happy to help changing the indenter, but I'm lost in the script, could you explain the logic behind it?
The text was updated successfully, but these errors were encountered:
sometimes I have several longish arguments/expressions to a function call so I want to break the function call into something like (manually formatted):
the following is formatted with 'gg=G' with vim-javascript indenter:
I'd be happy to help changing the indenter, but I'm lost in the script, could you explain the logic behind it?
The text was updated successfully, but these errors were encountered: