google / google/vimdoc

Support default argument values

Open
#114 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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

```vim
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})`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.