aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt20
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 =