import { __require as g } from "./lua.mjs";
import { __require as p } from "./markup-templating.mjs";
var u, n;
function d() {
  if (n)
    return u;
  n = 1;
  var l = g(), i = p();
  u = a, a.displayName = "etlua", a.aliases = [];
  function a(r) {
    r.register(l), r.register(i), function(e) {
      e.languages.etlua = {
        delimiter: {
          pattern: /^<%[-=]?|-?%>$/,
          alias: "punctuation"
        },
        "language-lua": {
          pattern: /[\s\S]+/,
          inside: e.languages.lua
        }
      }, e.hooks.add("before-tokenize", function(t) {
        var o = /<%[\s\S]+?%>/g;
        e.languages["markup-templating"].buildPlaceholders(t, "etlua", o);
      }), e.hooks.add("after-tokenize", function(t) {
        e.languages["markup-templating"].tokenizePlaceholders(t, "etlua");
      });
    }(r);
  }
  return u;
}
export {
  d as __require
};
