EmmyLua -> LuaLS

This commit is contained in:
Van
2026-06-16 17:50:09 +03:00
parent 5272c8e5a8
commit 24531f8af6
5 changed files with 64 additions and 40 deletions

View File

@@ -2,17 +2,18 @@
--- e.g. `"a,b":split(",")` returns `{"a","b"}`
--- @param s string
--- @param separator? string cannot be empty, default: `","`
--- @param include_empty? boolean default: `false`
--- @param max_splits? number if it's negative, splits aren't limited, default: `-1`
--- @param sep_is_pattern? boolean it specifies whether separator is a plain string or a pattern (regex), default: `false`
--- @return string[]
function string:split(separator, include_empty, max_splits, sep_is_pattern) end
function string.split(s, separator, include_empty, max_splits, sep_is_pattern) end
--- Returns the string without whitespace pre- and suffixes
--- e.g. `"\n \t\tfoo bar\t ":trim()` returns `"foo bar"`
--- @return string
function string:trim() end
function string.trim() end
--- Backported from Lua 5.4, see https://www.lua.org/manual/5.4/manual.html#6.4.2
---