Liferay.Loader.define("liferay!object-web$codemirror@5.65.12/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=/[(),[\]{}]/,l=/[ \v\f]/;function normal(){return function(u,f){if(u.eatWhile(l))return null;var m=u.next();if(a.test(m))return"{"===m&&u.eat("-")?switchState(u,f,chompMultiComment(1)):"["===m&&u.match("glsl|")?switchState(u,f,chompGlsl):"builtin";if("'"===m)return switchState(u,f,chompChar);if('"'===m)return u.eat('"')?u.eat('"')?switchState(u,f,chompMultiString):"string":switchState(u,f,chompSingleString);if(t.test(m))return u.eatWhile(r),"variable-2";if(e.test(m)){var c=1===u.pos;return u.eatWhile(r),c?"def":"variable"}if(n.test(m)){if("0"===m){if(u.eat(/[xX]/))return u.eatWhile(o),"number"}else u.eatWhile(n);return u.eat(".")&&u.eatWhile(n),u.eat(/[eE]/)&&(u.eat(/[-+]/),u.eatWhile(n)),"number"}return i.test(m)?"-"===m&&u.eat("-")?(u.skipToEnd(),"comment"):(u.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 u={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}},lineComment:"--",token:function(e,t){var r=t.f(e,(function(e){t.f=e})),n=e.current();return u.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