1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/bundle/CompleteParameter.vim/vader/erlang.vader
2020-08-29 21:14:10 +08:00

16 lines
566 B
Plaintext

Execute (func() -> undefined):
let completed_item = {'info': 'func() -> undefined'}
let result = cm_parser#erlang#parameters(completed_item)
AssertEqual ['()'], result
Execute (func(foo) -> ran()):
let completed_item = {'info': 'func(foo) -> ran()'}
let result = cm_parser#erlang#parameters(completed_item)
AssertEqual ['(foo)'], result
Execute (func(foo, bar) -> undefined | ran()):
let completed_item = {'info': 'func(foo, bar) -> undefined | ran()'}
let result = cm_parser#erlang#parameters(completed_item)
AssertEqual ['(foo, bar)'], result