"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(n,t,i){return t(i),i(n,t)}var v=/[a-z]/,o=/[A-Z]/,f=/[a-zA-Z0-9_]/,l=/[0-9]/,g=/[0-9A-Fa-f]/,m=/[-&*+.\\/<>=?^|:]/,w=/[(),[\]{}]/,d=/[ \v\f]/;function e(){return function(n,t){if(n.eatWhile(d))return null;var i=n.next();if(w.test(i))return i==="{"&&n.eat("-")?a(n,t,p(1)):i==="["&&n.match("glsl|")?a(n,t,E):"builtin";if(i==="'")return a(n,t,k);if(i==='"')return n.eat('"')?n.eat('"')?a(n,t,u):"string":a(n,t,x);if(o.test(i))return n.eatWhile(f),"type";if(v.test(i)){var r=n.pos===1;return n.eatWhile(f),r?"def":"variable"}if(l.test(i)){if(i==="0"){if(n.eat(/[xX]/))return n.eatWhile(g),"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 p(n){return n==0?e():function(t,i){for(;!t.eol();){var r=t.next();if(r=="{"&&t.eat("-"))++n;else if(r=="-"&&t.eat("}")&&(--n,n===0))return i(e()),"comment"}return i(p(n)),"comment"}}function u(n,t){for(;!n.eol();){var i=n.next();if(i==='"'&&n.eat('"')&&n.eat('"'))return t(e()),"string"}return"string"}function x(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.skipTo("\\'");)n.next(),n.next();return n.skipTo("'")?(n.next(),t(e()),"string"):(n.skipToEnd(),t(e()),"error")}function E(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};const T={name:"elm",startState:function(){return{f:e()}},copyState:function(n){return{f:n.f}},token:function(n,t){var i=t.f(n,function(h){t.f=h}),r=n.current();return y.hasOwnProperty(r)?"keyword":i},languageData:{commentTokens:{line:"--"}}};exports.elm=T;
//# sourceMappingURL=elm-CcXP9T36.js.map
