(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[89409],{89409:function(z,p,b){"use strict";b.r(p),b.d(p,{dylan:function(){return C}});function h(e,i){for(var n=0;n",symbolGlobal:"\\*"+f+"\\*",symbolConstant:"\\$"+f},g={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var c in a)a.hasOwnProperty(c)&&(a[c]=new RegExp("^"+a[c]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={};u.keyword="keyword",u.definition="def",u.simpleDefinition="def",u.signalingCalls="builtin";var y={},k={};h(["keyword","definition","simpleDefinition","signalingCalls"],function(e){h(t[e],function(i){y[i]=e,k[i]=u[e]})});function s(e,i,n){return i.tokenize=n,n(e,i)}function d(e,i){var n=e.peek();if(n=="'"||n=='"')return e.next(),s(e,i,x(n,"string"));if(n=="/"){if(e.next(),e.eat("*"))return s(e,i,m);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if(n=="#")return e.next(),n=e.peek(),n=='"'?(e.next(),s(e,i,x('"',"string"))):n=="b"?(e.next(),e.eatWhile(/[01]/),"number"):n=="x"?(e.next(),e.eatWhile(/[\da-f]/i),"number"):n=="o"?(e.next(),e.eatWhile(/[0-7]/),"number"):n=="#"?(e.next(),"punctuation"):n=="["||n=="("?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if(n=="~")return e.next(),n=e.peek(),n=="="?(e.next(),n=e.peek(),n=="="&&e.next(),"operator"):"operator";if(n==":"){if(e.next(),n=e.peek(),n=="=")return e.next(),"operator";if(n==":")return e.next(),"punctuation"}else{if("[](){}".indexOf(n)!=-1)return e.next(),"bracket";if(".,".indexOf(n)!=-1)return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var l in a)if(a.hasOwnProperty(l)){var o=a[l];if(o instanceof Array&&w(o,function(r){return e.match(r)})||e.match(o))return g[l]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),y.hasOwnProperty(e.current())?k[e.current()]:e.current().match(D)?"variable":(e.next(),"variableName.standard"))}function m(e,i){for(var n=!1,l=!1,o=0,r;r=e.next();){if(r=="/"&&n)if(o>0)o--;else{i.tokenize=d;break}else r=="*"&&l&&o++;n=r=="*",l=r=="/"}return"comment"}function x(e,i){return function(n,l){for(var o=!1,r,v=!1;(r=n.next())!=null;){if(r==e&&!o){v=!0;break}o=!o&&r=="\\"}return(v||!o)&&(l.tokenize=d),i}}const C={name:"dylan",startState:function(){return{tokenize:d,currentIndent:0}},token:function(e,i){if(e.eatSpace())return null;var n=i.tokenize(e,i);return n},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}}}]);