diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-12 23:41:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 23:41:55 -0800 |
commit | 92316849863bb2661ee5b4bb284f56163fed27ad (patch) | |
tree | 92b6f7d210c3dcca462b4ba48923dd65f61416ed /runtime/doc/lua.txt | |
parent | dfb676fe0d64c708c0c334b09c947db1bae4736d (diff) | |
download | rneovim-92316849863bb2661ee5b4bb284f56163fed27ad.tar.gz rneovim-92316849863bb2661ee5b4bb284f56163fed27ad.tar.bz2 rneovim-92316849863bb2661ee5b4bb284f56163fed27ad.zip |
doc [ci skip] #11656
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index d1f244c76f..af1f4a8c1f 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -885,6 +885,16 @@ deepcopy({orig}) *vim.deepcopy()* Return: ~ New table of copied keys and (nested) values. +endswith({s}, {suffix}) *vim.endswith()* + Tests if `s` ends with `suffix` . + + Parameters: ~ + {s} (string) a string + {suffix} (string) a suffix + + Return: ~ + (boolean) true if `suffix` is a suffix of s + gsplit({s}, {sep}, {plain}) *vim.gsplit()* Splits a string at each instance of a separator. @@ -962,6 +972,16 @@ split({s}, {sep}, {plain}) *vim.split()* See also: ~ |vim.gsplit()| +startswith({s}, {prefix}) *vim.startswith()* + Tests if `s` starts with `prefix` . + + Parameters: ~ + {s} (string) a string + {prefix} (string) a prefix + + Return: ~ + (boolean) true if `prefix` is a prefix of s + tbl_add_reverse_lookup({o}) *vim.tbl_add_reverse_lookup()* Add the reverse lookup values to an existing table. For example: `tbl_add_reverse_lookup { A = 1 } == { [1] = 'A', A = |