Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/mscgen/mscgen",["module","exports","require","../../lib/codemirror"],(function(t,r,e){var o,n=void 0;window;o=function(t){"use strict";var r={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};function wordRegexpBoundary(t){return new RegExp("^\\b(?:"+t.join("|")+")\\b","i")}function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")","i")}function startStateFn(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function copyStateFn(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}t.defineMode("mscgen",(function(t,e){var o,n=r[e&&e.language||"mscgen"];return{startState:startStateFn,copyState:copyStateFn,token:(o=n,function(t,r){if(t.match(wordRegexp(o.brackets),!0,!0))return"bracket";if(!r.inComment){if(t.match(/\/\*[^\*\/]*/,!0,!0))return r.inComment=!0,"comment";if(t.match(wordRegexp(o.singlecomment),!0,!0))return t.skipToEnd(),"comment"}if(r.inComment)return t.match(/[^\*\/]*\*\//,!0,!0)?r.inComment=!1:t.skipToEnd(),"comment";if(!r.inString&&t.match(/\"(\\\"|[^\"])*/,!0,!0))return r.inString=!0,"string";if(r.inString)return t.match(/[^\"]*\"/,!0,!0)?r.inString=!1:t.skipToEnd(),"string";if(o.keywords&&t.match(wordRegexpBoundary(o.keywords),!0,!0))return"keyword";if(t.match(wordRegexpBoundary(o.options),!0,!0))return"keyword";if(t.match(wordRegexpBoundary(o.arcsWords),!0,!0))return"keyword";if(t.match(wordRegexp(o.arcsOthers),!0,!0))return"keyword";if(o.operators&&t.match(wordRegexp(o.operators),!0,!0))return"operator";if(o.constants&&t.match(wordRegexp(o.constants),!0,!0))return"variable";if(!o.inAttributeList&&o.attributes&&t.match("[",!0,!0))return o.inAttributeList=!0,"bracket";if(o.inAttributeList){if(null!==o.attributes&&t.match(wordRegexpBoundary(o.attributes),!0,!0))return"attribute";if(t.match("]",!0,!0))return o.inAttributeList=!1,"bracket"}return t.next(),"base"}),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}})),t.defineMIME("text/x-mscgen","mscgen"),t.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),t.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})},"object"==typeof r&&"object"==typeof t?o(e("../../lib/codemirror")):"function"==typeof n&&n.amd?n(["../../lib/codemirror"],o):o(CodeMirror)}));
//# sourceMappingURL=mscgen.js.map