mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
build: set luals checklevel to Hint #32392
This commit is contained in:
@ -346,7 +346,10 @@ ExternalProject_Add(download_luals
|
|||||||
|
|
||||||
file(GLOB_RECURSE LUAFILES runtime/*.lua)
|
file(GLOB_RECURSE LUAFILES runtime/*.lua)
|
||||||
add_target(luals
|
add_target(luals
|
||||||
COMMAND ${DEPS_BIN_DIR}/luals/bin/lua-language-server --configpath=${PROJECT_SOURCE_DIR}/.luarc.json --check=${PROJECT_SOURCE_DIR}/runtime
|
COMMAND ${DEPS_BIN_DIR}/luals/bin/lua-language-server
|
||||||
|
--configpath=${PROJECT_SOURCE_DIR}/.luarc.json
|
||||||
|
--check=${PROJECT_SOURCE_DIR}/runtime
|
||||||
|
--checklevel=Hint
|
||||||
DEPENDS ${LUAFILES}
|
DEPENDS ${LUAFILES}
|
||||||
CUSTOM_COMMAND_ARGS USES_TERMINAL)
|
CUSTOM_COMMAND_ARGS USES_TERMINAL)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
--- documentation available at runtime/lua/vim/_meta/re.lua
|
--- documentation available at runtime/lua/vim/_meta/re.lua
|
||||||
|
|
||||||
-- imported functions and modules
|
-- imported functions and modules
|
||||||
local tonumber, type, print, error = tonumber, type, print, error
|
local tonumber, type, error = tonumber, type, error
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
local m = require"lpeg"
|
local m = require"lpeg"
|
||||||
|
|
||||||
@ -63,10 +63,10 @@ local function updatelocale ()
|
|||||||
mem = {} -- restart memoization
|
mem = {} -- restart memoization
|
||||||
fmem = {}
|
fmem = {}
|
||||||
gmem = {}
|
gmem = {}
|
||||||
local mt = {__mode = "v"}
|
local mt0 = {__mode = "v"}
|
||||||
setmetatable(mem, mt)
|
setmetatable(mem, mt0)
|
||||||
setmetatable(fmem, mt)
|
setmetatable(fmem, mt0)
|
||||||
setmetatable(gmem, mt)
|
setmetatable(gmem, mt0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ updatelocale()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
local I = m.P(function (s,i) print(i, s:sub(1, i-1)); return i end)
|
-- local I = m.P(function (s,i) print(i, s:sub(1, i-1)); return i end)
|
||||||
|
|
||||||
|
|
||||||
local function patt_error (s, i)
|
local function patt_error (s, i)
|
||||||
@ -240,7 +240,8 @@ local function find (s, p, i)
|
|||||||
cp = mm.P{ mm.Cp() * cp * mm.Cp() + 1 * mm.V(1) }
|
cp = mm.P{ mm.Cp() * cp * mm.Cp() + 1 * mm.V(1) }
|
||||||
fmem[p] = cp
|
fmem[p] = cp
|
||||||
end
|
end
|
||||||
local i, e = cp:match(s, i or 1)
|
local e
|
||||||
|
i, e = cp:match(s, i or 1)
|
||||||
if i then return i, e - 1
|
if i then return i, e - 1
|
||||||
else return i
|
else return i
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user