mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
refactor(build): include lpeg as a library
This commit is contained in:
@@ -3031,6 +3031,15 @@ describe('lua stdlib', function()
|
||||
eq(false, if_nil(d, c))
|
||||
eq(NIL, if_nil(a))
|
||||
end)
|
||||
|
||||
it('lpeg', function()
|
||||
eq(5, exec_lua [[
|
||||
local m = vim.lpeg
|
||||
return m.match(m.R'09'^1, '4504ab')
|
||||
]])
|
||||
|
||||
eq(4, exec_lua [[ return vim.re.match("abcde", '[a-c]+') ]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('lua: builtin modules', function()
|
||||
|
Reference in New Issue
Block a user