var o,u;function x(){if(u)return o;u=1;function f(n){const t=n.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",p="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",d={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},a={className:"subst",begin:/#\{/,end:/\}/,keywords:d},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},b={match:/\\[\s\S]/,scope:"char.escape",relevance:0},i=`[/|([{<"']`,s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],c=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),N={className:"string",begin:"~[a-z](?="+i+")",contains:s.map(e=>n.inherit(e,{contains:[c(e.end),b,a]}))},h={className:"string",begin:"~[A-Z](?="+i+")",contains:s.map(e=>n.inherit(e,{contains:[c(e.end)]}))},v={className:"regex",variants:[{begin:"~r(?="+i+")",contains:s.map(e=>n.inherit(e,{end:t.concat(e.end,/[uismxfU]{0,7}/),contains:[c(e.end),b,a]}))},{begin:"~R(?="+i+")",contains:s.map(e=>n.inherit(e,{end:t.concat(e.end,/[uismxfU]{0,7}/),contains:[c(e.end)]}))}]},g={className:"string",contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},l={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:r,endsParent:!0})]},A=n.inherit(l,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),m=[g,v,h,N,n.HASH_COMMENT_MODE,A,l,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[g,{begin:p}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return a.contains=m,{name:"Elixir",aliases:["ex","exs"],keywords:d,contains:m}}return o=f,o}export{x as r};
//# sourceMappingURL=elixir-NgzVXv4Z.chunk.mjs.map
