Thank you for the patch. Christian. Here is the updated indent file for SAS.
On Tue, Jun 26, 2018 at 1:06 AM, Christian Brabandt <[email protected]> wrote: > > On Mo, 25 Jun 2018, Blay263 wrote: > > So just to give more context about a year ago the SAS vim files were > > updated. For the most part the updates were great but indenting hasn't > > worked since then.To reproduce: gvim --clean test.sas(attached). Then > > =G.indentation is removed . Expect indentation . > > First of all, I don't know the language, but I found two problems with > the distributed indent script. It worked for me in my regular setup, but > didn't work when using vim --clean for two reasons: > > 1) It seems, statements are case insensitive. However the indent > script does not account for that and uses whatever your > 'ignorecase' setting is. That should be fixed by using the `=~#` > for matching regexpes. > 2) The indent script uses the softtabstop value directly. But that > might be zero or negative, in which case I think the > shiftwidth() function should be used. > > With those changes, it indents your file to: > > ,---- > | Proc sql; > | create table legacy as > | select * from table1 as a > | where a.PolNo in (select distinct PolNo from table2); > | quit; > `---- > > Attached is the patch for Keny to apply. > > Best, > Christian > -- > Jeder sollte sich eine Überseh-Stunde seines Tags oder Treibens > wählen, und zwar nicht eine spazierende im Freien, sondern eine dunkle > in der Dämmerung, wo nichts ihn durch seine Sinnen unterbricht. > -- Jean Paul > -- -- 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.
sas.vim
Description: Binary data
