summaryrefslogtreecommitdiff
path: root/mac/.config/mpv/script-modules/utf8/begins/compiletime/parser.lua
blob: c54c0df5a0555cc54df1fc366fabbe71be59a059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return function(utf8)

utf8.config.begins = utf8.config.begins or {
  utf8:require "begins.compiletime.vanilla"
}

function utf8.regex.compiletime.begins.parse(regex, c, bs, ctx)
  for _, m in ipairs(utf8.config.begins) do
    local functions, move = m.parse(regex, c, bs, ctx)
    utf8.debug("begins", _, c, bs, move, functions)
    if functions then
      return functions, move
    end
  end
end

end