patch 8.2.2733: detecting Lua version is not reliable
Problem: Detecting Lua version is not reliable.
Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt
index b556996..b7ccb04 100644
--- a/runtime/doc/if_lua.txt
+++ b/runtime/doc/if_lua.txt
@@ -208,6 +208,8 @@
created on demand. Example: >
:lua print(vim.fn.has('timers'))
<
+ vim.lua_version The Lua version Vim was compiled with, in the
+ form {major}.{minor}.{patch}, e.g. "5.1.4".
==============================================================================
3. List userdata *lua-list*