diff ci/if_ver-1.vim @ 24385:0878f0fd349b v8.2.2733

patch 8.2.2733: detecting Lua version is not reliable Commit: https://github.com/vim/vim/commit/125ed2745c0a0570c1f81f249aebb023b2deef1b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 7 20:11:12 2021 +0200 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 https://github.com/vim/vim/issues/8080)
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Apr 2021 20:15:04 +0200
parents 27ff44268da5
children
line wrap: on
line diff
--- a/ci/if_ver-1.vim
+++ b/ci/if_ver-1.vim
@@ -6,7 +6,7 @@ if 1
   echo "*** Interface versions ***\n"
 
   echo 'Lua:'
-  PrintVer lua print(_VERSION)
+  PrintVer lua print(vim.lua_version, jit and "(LuaJIT)" or "")
 
   echo 'MzScheme:'
   PrintVer mzscheme (display (version))