refactor(lua): "module" => "M" #28426

Most of the codebase uses the `M` convention for Lua module.
Update the last remaining cases.
This commit is contained in:
Justin M. Keyes
2024-04-20 09:06:49 -07:00
committed by GitHub
parent f190f758ac
commit 8886b1807c
5 changed files with 233 additions and 233 deletions

View File

@@ -1,6 +1,6 @@
local bit = require 'bit'
local module = {}
local M = {}
-- Description of the values below is contained in ex_cmds_defs.h file.
-- "EX_" prefix is omitted.
@@ -32,14 +32,14 @@ local FILES = bit.bor(XFILE, EXTRA)
local WORD1 = bit.bor(EXTRA, NOSPC)
local FILE1 = bit.bor(FILES, NOSPC)
module.flags = {
M.flags = {
RANGE = RANGE,
DFLALL = DFLALL,
PREVIEW = PREVIEW,
}
-- The following table is described in ex_cmds_defs.h file.
module.cmds = {
M.cmds = {
{
command = 'append',
flags = bit.bor(BANG, RANGE, ZEROR, TRLBAR, CMDWIN, LOCK_OK, MODIFY),
@@ -3359,4 +3359,4 @@ module.cmds = {
},
}
return module
return M