Current File : /home/pacjaorg/public_html/kmm/media/vendor/codemirror/mode/elm/elm.min.js
(function(r){typeof exports=="object"&&typeof module=="object"?r(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";r.defineMode("elm",function(){function a(n,t,i){return t(i),i(n,t)}var h=/[a-z]/,d=/[A-Z]/,p=/[a-zA-Z0-9_]/,l=/[0-9]/,v=/[0-9A-Fa-f]/,m=/[-&*+.\\/<>=?^|:]/,u=/[(),[\]{}]/,x=/[ \v\f]/;function e(){return function(n,t){if(n.eatWhile(x))return null;var i=n.next();if(u.test(i))return i==="{"&&n.eat("-")?a(n,t,o(1)):i==="["&&n.match("glsl|")?a(n,t,k):"builtin";if(i==="'")return a(n,t,E);if(i==='"')return n.eat('"')?n.eat('"')?a(n,t,w):"string":a(n,t,g);if(d.test(i))return n.eatWhile(p),"variable-2";if(h.test(i)){var f=n.pos===1;return n.eatWhile(p),f?"def":"variable"}if(l.test(i)){if(i==="0"){if(n.eat(/[xX]/))return n.eatWhile(v),"number"}else n.eatWhile(l);return n.eat(".")&&n.eatWhile(l),n.eat(/[eE]/)&&(n.eat(/[-+]/),n.eatWhile(l)),"number"}return m.test(i)?i==="-"&&n.eat("-")?(n.skipToEnd(),"comment"):(n.eatWhile(m),"keyword"):i==="_"?"keyword":"error"}}function o(n){return n==0?e():function(t,i){for(;!t.eol();){var f=t.next();if(f=="{"&&t.eat("-"))++n;else if(f=="-"&&t.eat("}")&&(--n,n===0))return i(e()),"comment"}return i(o(n)),"comment"}}function w(n,t){for(;!n.eol();){var i=n.next();if(i==='"'&&n.eat('"')&&n.eat('"'))return t(e()),"string"}return"string"}function g(n,t){for(;n.skipTo('\\"');)n.next(),n.next();return n.skipTo('"')?(n.next(),t(e()),"string"):(n.skipToEnd(),t(e()),"error")}function E(n,t){for(;n.skipTo("\\'");)n.next(),n.next();return n.skipTo("'")?(n.next(),t(e()),"string"):(n.skipToEnd(),t(e()),"error")}function k(n,t){for(;!n.eol();){var i=n.next();if(i==="|"&&n.eat("]"))return t(e()),"string"}return"string"}var y={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:e()}},copyState:function(n){return{f:n.f}},lineComment:"--",token:function(n,t){var i=t.f(n,function(b){t.f=b}),f=n.current();return y.hasOwnProperty(f)?"keyword":i}}}),r.defineMIME("text/x-elm","elm")});
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!