blob: f966e9427263ab8c8bca34abb15839fd1d1d9581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
return function(utf8)
utf8.config.ends = utf8.config.ends or {
utf8:require "ends.compiletime.vanilla"
}
function utf8.regex.compiletime.ends.parse(regex, c, bs, ctx)
for _, m in ipairs(utf8.config.ends) do
local functions, move = m.parse(regex, c, bs, ctx)
utf8.debug("ends", _, c, bs, move, functions)
if functions then
return functions, move
end
end
end
end
|