Liferay.Loader.define("journal-web$codemirror@5.65.2/mode/elm/elm",["module","exports","require","../../lib/codemirror"],(function(e,t,r){var n,o=void 0;window;n=function(e){"use strict";e.defineMode("elm",(function(){function switchState(e,t,r){return t(r),r(e,t)}var e=/[a-z]/,t=/[A-Z]/,r=/[a-zA-Z0-9_]/,n=/[0-9]/,o=/[0-9A-Fa-f]/,i=/[-&*+.\\/<>=?^|:]/,a=/[(),[\]{}]/,u=/[ \v\f]/;function normal(){return function(l,f){if(l.eatWhile(u))return null;var m=l.next();if(a.test(m))return"{"===m&&l.eat("-")?switchState(l,f,chompMultiComment(1)):"["===m&&l.match("glsl|")?switchState(l,f,chompGlsl):"builtin";if("'"===m)return switchState(l,f,chompChar);if('"'===m)return l.eat('"')?l.eat('"')?switchState(l,f,chompMultiString):"string":switchState(l,f,chompSingleString);if(t.test(m))return l.eatWhile(r),"variable-2";if(e.test(m)){var c=1===l.pos;return l.eatWhile(r),c?"def":"variable"}if(n.test(m)){if("0"===m){if(l.eat(/[xX]/))return l.eatWhile(o),"number"}else l.eatWhile(n);return l.eat(".")&&l.eatWhile(n),l.eat(/[eE]/)&&(l.eat(/[-+]/),l.eatWhile(n)),"number"}return i.test(m)?"-"===m&&l.eat("-")?(l.skipToEnd(),"comment"):(l.eatWhile(i),"keyword"):"_"===m?"keyword":"error"}}function chompMultiComment(e){return 0==e?normal():function(t,r){for(;!t.eol();){var n=t.next();if("{"==n&&t.eat("-"))++e;else if("-"==n&&t.eat("}")&&0==--e)return r(normal()),"comment"}return r(chompMultiComment(e)),"comment"}}function chompMultiString(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(normal()),"string";return"string"}function chompSingleString(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(normal()),"string"):(e.skipToEnd(),t(normal()),"error")}function chompChar(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(normal()),"string"):(e.skipToEnd(),t(normal()),"error")}function chompGlsl(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(normal()),"string";return"string"}var l={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:normal()}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,(function(e){t.f=e})),n=e.current();return l.hasOwnProperty(n)?"keyword":r}}})),e.defineMIME("text/x-elm","elm")},"object"==typeof t&&"object"==typeof e?n(r("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=elm.js.map