import o from "./markup-templating.es.js";
import u from "./ruby.es.js";
r.displayName = "erb";
r.aliases = [];
function r(a) {
  a.register(o), a.register(u), (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 t = /<%=?(?:[^\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",
        t
      );
    }), e.hooks.add("after-tokenize", function(n) {
      e.languages["markup-templating"].tokenizePlaceholders(n, "erb");
    });
  })(a);
}
export {
  r as default
};
//# sourceMappingURL=erb.es.js.map
