vim-better-sml
vim-better-sml copied to clipboard
lines beginning with | after a fun no longer indent
All of the SML tools I've used format code differently from what I expect; lines beginning with |
are indented, but the convention I'm used to is that if it's an alternate pattern for the fun
, the |
should match and not be indented further:
fun fact 0 = 1
| fact n = n * fact (n-1);
I modified the indentation logic to change this behavior. I'm new to vimscript and plugins; I will happily accept edits or implement suggestions.