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