diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 22:04:31 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-19 17:30:20 +0200 |
commit | e628c011bfb58685e4a4ce7da681afda08989a7f (patch) | |
tree | 451d33c6316d038acdba7f73d41bf1cda32fa211 /runtime/lua/vim/shared.lua | |
parent | 53576dfb3598244afba3dbf5b60e6113109bf7c6 (diff) | |
download | rneovim-e628c011bfb58685e4a4ce7da681afda08989a7f.tar.gz rneovim-e628c011bfb58685e4a4ce7da681afda08989a7f.tar.bz2 rneovim-e628c011bfb58685e4a4ce7da681afda08989a7f.zip |
gen_vimdoc.py: support lua/shared.lua module [ci skip]
Diffstat (limited to 'runtime/lua/vim/shared.lua')
-rw-r--r-- | runtime/lua/vim/shared.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index 9dca51ce9a..ec0c74e257 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -16,14 +16,14 @@ local function tbl_contains(t, value) return false end ---- Merges two or more map-like tables. +-- Merges two or more map-like tables. -- --@see |extend()| -- --- behavior: Decides what to do if a key is found in more than one map: --- "error": raise an error --- "keep": use value from the leftmost map --- "force": use value from the rightmost map +--@param behavior Decides what to do if a key is found in more than one map: +--- - "error": raise an error +--- - "keep": use value from the leftmost map +--- - "force": use value from the rightmost map local function tbl_extend(behavior, ...) if (behavior ~= 'error' and behavior ~= 'keep' and behavior ~= 'force') then error('invalid "behavior": '..tostring(behavior)) |