vim-jp/vim-vimlparser

Handle default arguments with functions

blueyed opened this issue · 3 comments

This is not parsed currently:

function! TestFunction(test = 1)
    echo a:test
endfunction

Via Vimjas/vint#337.

tyru commented

I didn't know the default arguments in Vim script.
what patch version did include it?

It looks like it was 8.1.1310 back in May, so not that long ago. I had no idea either. That's actually how I discovered this issue; I read about it in the help and the very first time I tried to use it I received the error.

tyru commented

@jmdevin Thanks