import{t as e}from"./rolldown-runtime-iuO8RvI4.js";import{t as r}from"./c58e53d13-DwqVtv5W.js";import{t as a}from"./c1747429b-hj2Rdpjz.js";var n=e((e,n)=>{var t=r(),i=a();function s(e){e.register(t),e.register(i),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(r){e.languages["markup-templating"].buildPlaceholders(r,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(r){e.languages["markup-templating"].tokenizePlaceholders(r,"erb")})}(e)}n.exports=s,s.displayName="erb",s.aliases=[]});export default n();