On Wed, Oct 17, 2018 at 9:08 PM Axel Forsman <[email protected]> wrote:
>
> Hello everyone:
>
> 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).
> 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.
>
> Well met,
> Axel Forsman

At present, the Matlab indent, syntax and ftplugin scripts are each
listed as maintained by a different person. The indent script
(unchanged since 2001) is by far the longest-unchanged one of three.
If Christophe Poucet has gone AWOL and does not reappear, I suppose
that Bram (who reads this list) will let you become the new maintainer
of the Matlab indent script — if you are willing, of course. That
would mean listening to Matlab users' complaints about indenting,
fixing problems as best you can, and centralizing patches (if any)
supplied by other people, then sending any changes to Bram. What would
you think of that?

Yes, as you say in your other email, if Christophe Poucet's email
address has become invalid it needs changing, but even if he (in
Belgium where he and I live, "Christophe" is a masculline given name)
is still connected to the Internet, it is quite possible that no one
on this list knows his new address, so it's anyone's guess by what
that invalid address should be replaced.

Best regards,
Tony.

-- 
-- 
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