google / vimdoc

Helpfile generation for vim
Apache License 2.0
291 stars 28 forks source link

Support default argument values #114

Open flwyd opened 4 years ago

flwyd commented 4 years ago

Vim 8.1.1310 added default values for function arguments, e.g.

function Greet(greeting = 'hello')
  echo a:greeting 'world'
endfunction

vimdoc currently parses this as a two-arg function with parameters greeting and hello: Greet({greeting}, {hello}).

dbarnett commented 4 years ago

Awesome, yeah, we should definitely support this style!