Regex is not strong enough to parse all cases, and I try to guess the indentation for common cases. Currently it auto-indents for all fun/fn following a :, assuming that most functions with an explicit return type are NOT defined inline.
I also renamed ftdetect/kokafiletype.vim to ftdetect/koka.vim to fit the naming convention.
It's mostly modified from runtime/indent/lua.vim
Regex is not strong enough to parse all cases, and I try to guess the indentation for common cases. Currently it auto-indents for all
fun/fn
following a:
, assuming that most functions with an explicit return type are NOT defined inline.I also renamed
ftdetect/kokafiletype.vim
toftdetect/koka.vim
to fit the naming convention.