diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-20 09:06:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 09:06:49 -0700 |
commit | 8886b1807c4c0fd96558f198e4fc8cf962a7cc5b (patch) | |
tree | 0f20daf8c906165e69e5583dff96ac13cadf7467 /test/cmakeconfig/paths.lua.in | |
parent | f190f758ac58d9cc955368e047b070e0a2261033 (diff) | |
download | rneovim-8886b1807c4c0fd96558f198e4fc8cf962a7cc5b.tar.gz rneovim-8886b1807c4c0fd96558f198e4fc8cf962a7cc5b.tar.bz2 rneovim-8886b1807c4c0fd96558f198e4fc8cf962a7cc5b.zip |
refactor(lua): "module" => "M" #28426
Most of the codebase uses the `M` convention for Lua module.
Update the last remaining cases.
Diffstat (limited to 'test/cmakeconfig/paths.lua.in')
-rw-r--r-- | test/cmakeconfig/paths.lua.in | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/cmakeconfig/paths.lua.in b/test/cmakeconfig/paths.lua.in index a35dbe8901..ce0eb870e0 100644 --- a/test/cmakeconfig/paths.lua.in +++ b/test/cmakeconfig/paths.lua.in @@ -1,22 +1,22 @@ -local module = {} +local M = {} -module.include_paths = {} +M.include_paths = {} for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do - table.insert(module.include_paths, p) + table.insert(M.include_paths, p) end -module.test_build_dir = "${CMAKE_BINARY_DIR}" -module.test_source_path = "${CMAKE_SOURCE_DIR}" -module.test_lua_prg = "${LUA_PRG}" -module.test_luajit_prg = "" -if module.test_luajit_prg == '' then - if module.test_lua_prg:sub(-6) == 'luajit' then - module.test_luajit_prg = module.test_lua_prg +M.test_build_dir = "${CMAKE_BINARY_DIR}" +M.test_source_path = "${CMAKE_SOURCE_DIR}" +M.test_lua_prg = "${LUA_PRG}" +M.test_luajit_prg = "" +if M.test_luajit_prg == '' then + if M.test_lua_prg:sub(-6) == 'luajit' then + M.test_luajit_prg = M.test_lua_prg else - module.test_luajit_prg = nil + M.test_luajit_prg = nil end end -table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/include") -table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto") +table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/include") +table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto") -return module +return M |