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