Hi Axel,

I'm the original author of that file and Bram pinged me.  Thanks for taking 
this up and improving vim for Matlab users!

I'll be honest, I haven't touched this file in many many years and have since 
completely stopped working on Matlab.  As such, while I am the original author, 
I no longer feel I'm a source of authority as to what the right direction for 
this code should be.

I don't have patch-approval.  It would be useful to get a sense of how large 
the change is.  I think any patch approver will likely want that information. 
How hard is it for you to specify what the diff is?

Thanks


On Wednesday, October 17, 2018 at 1:12:38 PM UTC-7, Bram Moolenaar wrote:
> Axel Forsman wrote:
> 
> > I wrote to Christophe Poucet at ..., 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.
> 
<snip>

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