aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/compat.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-09-20 11:15:32 +0100
committerGitHub <noreply@github.com>2022-09-20 11:15:32 +0100
commitabe2d90693e5cec3428c0162c48f0ea38972ff31 (patch)
treecdba6ac16a0da7daffa1037d83e0324c0f1045a4 /runtime/lua/vim/compat.lua
parente76215830522f75dea1495a0de38933d18954eca (diff)
downloadrneovim-abe2d90693e5cec3428c0162c48f0ea38972ff31.tar.gz
rneovim-abe2d90693e5cec3428c0162c48f0ea38972ff31.tar.bz2
rneovim-abe2d90693e5cec3428c0162c48f0ea38972ff31.zip
feat(lua): move compat module from runtime to test (#20257)
Diffstat (limited to 'runtime/lua/vim/compat.lua')
-rw-r--r--runtime/lua/vim/compat.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/lua/vim/compat.lua b/runtime/lua/vim/compat.lua
deleted file mode 100644
index 2c9786d491..0000000000
--- a/runtime/lua/vim/compat.lua
+++ /dev/null
@@ -1,12 +0,0 @@
--- Lua 5.1 forward-compatibility layer.
--- For background see https://github.com/neovim/neovim/pull/9280
---
--- Reference the lua-compat-5.2 project for hints:
--- https://github.com/keplerproject/lua-compat-5.2/blob/c164c8f339b95451b572d6b4b4d11e944dc7169d/compat52/mstrict.lua
--- https://github.com/keplerproject/lua-compat-5.2/blob/c164c8f339b95451b572d6b4b4d11e944dc7169d/tests/test.lua
-
-local lua_version = _VERSION:sub(-3)
-
-if lua_version >= '5.2' then
- unpack = table.unpack -- luacheck: ignore 121 143
-end