Axel Forsman wrote:

> I wrote to Christophe Poucet at [email protected], the
> listed maintainer on the MATLAB language indent file about an improved
> indent script I made. Unfortunately, I got back that the email was not
> listed on the server. Nevertheless the new script fixes many of the
> issues of the script present in upstream Vim, and is available on
> GitHub 
> (https://github.com/axelf4/dotfiles/blob/master/.vim/indent/matlab.vim).

Let me check if I have another email for Christopher...  I'll ask him to
respond.

> Not sure on how to do with a patch since it is a complete rewrite.
> 
> Some of the particular code patterns that this script indent better
> than the current one include (where better is measured as closer to
> MATLAB R2018b smart indent):
> 
> if true, ...
>         if true
>         disp hello;
>         end
> end
> (where line continuations mean you have to explicitly line up if/end pairs)
> 
> switch a
>     case 1
>         if true, foo; end
>     case 3
>         disp hello;
> end
> (where end of switch statement has to be dedented twice and a one-line
> if is used)
> 
> if true
>     A(1:end - 1)
>     disp hello;
> end
> (where end is used in array indexing)
> 
> Additionally the Function indenting format is configurable just like in 
> MATLAB.
> 
> I hope for the sake of us all that, if not this, then something else
> gets merged because touching MATLAB is frustrating as is. Not a single
> man should be subjected to that amount of suffering.

:-)

I hope MatLab users can come up with the best choice.

-- 
hundred-and-one symptoms of being an internet addict:
225. You sign up for free subscriptions for all the computer magazines

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui