LoveFrames/loveframes/third-party/utf8/modifier/compiletime/parser.lua

21 lines
565 B
Lua
Raw Permalink Normal View History

2020-05-11 16:23:16 +00:00
return function(utf8)
utf8.config.modifier = utf8.config.modifier or {
utf8:require "modifier.compiletime.vanilla",
utf8:require "modifier.compiletime.frontier",
utf8:require "modifier.compiletime.stub",
}
function utf8.regex.compiletime.modifier.parse(regex, c, bs, ctx)
for _, m in ipairs(utf8.config.modifier) do
local functions, move = m.parse(regex, c, bs, ctx)
2020-08-04 10:28:04 +00:00
utf8.debug("mod", _, c, bs, move, functions and utf8.config.unpack(functions))
2020-05-11 16:23:16 +00:00
if functions then
ctx.prev_class = nil
return functions, move
end
end
end
end