owncast/static/web/_next/static/chunks/7213.a0c056179cbf676e.js
2023-10-06 07:22:08 +00:00

1 line
No EOL
2 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7213],{37213:function(e,a,t){t.r(a),t.d(a,{mathematica:function(){return i}});var n="[a-zA-Z\\$][a-zA-Z0-9\\$]*",o="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",c="(?:`(?:`?"+o+")?)",m=RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+c+"?(?:\\*\\^[+-]?\\d+)?))"),r=RegExp("(?:"+o+c+"?(?:\\*\\^[+-]?\\d+)?)"),z=RegExp("(?:`?)(?:"+n+")(?:`(?:"+n+"))*(?:`?)");function tokenBase(e,a){var t;return'"'===(t=e.next())?(a.tokenize=tokenString,a.tokenize(e,a)):"("===t&&e.eat("*")?(a.commentLevel++,a.tokenize=tokenComment,a.tokenize(e,a)):(e.backUp(1),e.match(m,!0,!1)||e.match(r,!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(z,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error")}function tokenString(e,a){for(var t,n=!1,o=!1;null!=(t=e.next());){if('"'===t&&!o){n=!0;break}o=!o&&"\\"===t}return n&&!o&&(a.tokenize=tokenBase),"string"}function tokenComment(e,a){for(var t,n;a.commentLevel>0&&null!=(n=e.next());)"("===t&&"*"===n&&a.commentLevel++,"*"===t&&")"===n&&a.commentLevel--,t=n;return a.commentLevel<=0&&(a.tokenize=tokenBase),"comment"}let i={name:"mathematica",startState:function(){return{tokenize:tokenBase,commentLevel:0}},token:function(e,a){return e.eatSpace()?null:a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}}}]);