vim-better-sml icon indicating copy to clipboard operation
vim-better-sml copied to clipboard

lines beginning with | after a fun no longer indent

Open peteraldous opened this issue 5 months ago • 1 comments

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.

peteraldous avatar Sep 12 '24 01:09 peteraldous