2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8405],{8405:function(p,u,c){"use strict";c.r(u),c.d(u,{mathematica:function(){return k}});var f="[a-zA-Z\\$][a-zA-Z0-9\\$]*",z="(?:\\d+)",l="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",m="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",o="(?:`(?:`?"+l+")?)",A=new RegExp("(?:"+z+"(?:\\^\\^"+m+o+"?(?:\\*\\^[+-]?\\d+)?))"),Z=new RegExp("(?:"+l+o+"?(?:\\*\\^[+-]?\\d+)?)"),$=new RegExp("(?:`?)(?:"+f+")(?:`(?:"+f+"))*(?:`?)");function i(e,a){var n;return n=e.next(),n==='"'?(a.tokenize=h,a.tokenize(e,a)):n==="("&&e.eat("*")?(a.commentLevel++,a.tokenize=v,a.tokenize(e,a)):(e.backUp(1),e.match(A,!0,!1)||e.match(Z,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match($,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function h(e,a){for(var n,r=!1,t=!1;(n=e.next())!=null;){if(n==='"'&&!t){r=!0;break}t=!t&&n==="\\"}return r&&!t&&(a.tokenize=i),"string"}function v(e,a){for(var n,r;a.commentLevel>0&&(r=e.next())!=null;)n==="("&&r==="*"&&a.commentLevel++,n==="*"&&r===")"&&a.commentLevel--,n=r;return a.commentLevel<=0&&(a.tokenize=i),"comment"}const k={name:"mathematica",startState:function(){return{tokenize:i,commentLevel:0}},token:function(e,a){return e.eatSpace()?null:a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}}}]);
|