robin/laufey
tiny neovim fork for cozy coding
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
files
| LICENSE | 1.0 KiB |
| README.md | 1.2 KiB |
| lpcap.c | 17.8 KiB |
| lpcap.h | 2.4 KiB |
| lpcode.c | 31.9 KiB |
| lpcode.h | 675 B |
| lpcset.c | 3.2 KiB |
| lpcset.h | 736 B |
| lpprint.c | 7.0 KiB |
| lpprint.h | 641 B |
| lptree.c | 38.5 KiB |
| lptree.h | 2.4 KiB |
| lptypes.h | 2.9 KiB |
| lpvm.c | 14.5 KiB |
| lpvm.h | 2.3 KiB |
LPeg - Parsing Expression Grammars For Lua
For more information, see Lpeg.
Vendored @ v1.1.0 with patch to prevent conflict with LuaJIT extensions:
diff --git a/src/lpeg/lptree.c b/src/lpeg/lptree.c index475b0c36bf ..94a3171d5a 100644--- a/src/lpeg/lptree.c +++ b/src/lpeg/lptree.c @@ -1388,7 +1388,7 @@ int luaopen_lpeg (lua_State *L) { lua_pushnumber(L, MAXBACK); /* initialize maximum backtracking */ lua_setfield(L, LUA_REGISTRYINDEX, MAXSTACKIDX); luaL_setfuncs(L, metareg, 0);- luaL_newlib(L, pattreg); + luaL_register(L, "lpeg", pattreg); // Nvim: inline conflicting luaL_newlib macro lua_pushvalue(L, -1); lua_setfield(L, -3, "__index"); lua_pushliteral(L, "LPeg " VERSION);diff --git a/src/lpeg/lptypes.h b/src/lpeg/lptypes.h index3f860b973f ..98974e1b88 100644--- a/src/lpeg/lptypes.h +++ b/src/lpeg/lptypes.h @@ -35,7 +35,7 @@ #define lua_rawlen lua_objlen #define luaL_setfuncs(L,f,n) luaL_register(L,NULL,f)-#define luaL_newlib(L,f) luaL_register(L,"lpeg",f) +// #define luaL_newlib(L,f) luaL_register(L,"lpeg",f) // Nvim: conflicts with LuaJIT typedef size_t lua_Unsigned;