mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user