Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

88 lines
3.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 121491
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
var t;
(t =
/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i),
(e.languages.maxscript = {
comment: { pattern: /\/\*[\s\S]*?(?:\*\/|$)|--.*/, greedy: !0 },
string: {
pattern: /(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,
lookbehind: !0,
greedy: !0,
},
path: {
pattern: /\$(?:[\w/\\.*?]|'[^']*')*/,
greedy: !0,
alias: "string",
},
"function-call": {
pattern: RegExp(
"((?:" +
(/^/.source + "|" + /[;=<>+\-*/^({\[]/.source) +
"|" +
/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/
.source +
")[ ]*)(?!" +
t.source +
")" +
/[a-z_]\w*\b/.source +
"(?=[ ]*(?:" +
("(?!" +
t.source +
")" +
/[a-z_]/.source +
"|" +
/\d|-\.?\d/.source) +
"|" +
/[({'"$@#?]/.source +
"))",
"im",
),
lookbehind: !0,
greedy: !0,
alias: "function",
},
"function-definition": {
pattern: /(\b(?:fn|function)\s+)\w+\b/i,
lookbehind: !0,
alias: "function",
},
argument: { pattern: /\b[a-z_]\w*(?=:)/i, alias: "attr-name" },
keyword: t,
boolean: /\b(?:false|true)\b/,
time: {
pattern:
/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,
lookbehind: !0,
alias: "number",
},
number: [
{
pattern:
/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,
lookbehind: !0,
},
/\b(?:e|pi)\b/,
],
constant: /\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,
color: {
pattern:
/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,
alias: "constant",
},
operator: /[-+*/<>=!]=?|[&^?]|#(?!\()/,
punctuation: /[()\[\]{}.:,;]|#(?=\()|\\$/m,
});
}
(t.exports = r), (r.displayName = "maxscript"), (r.aliases = []);
};
export default moduleFactory;