71 lines
2.4 KiB
JavaScript
71 lines
2.4 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 12082
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
(e.languages.wren = {
|
|
comment: [
|
|
{
|
|
pattern:
|
|
/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,
|
|
greedy: !0,
|
|
},
|
|
{ pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 },
|
|
],
|
|
"triple-quoted-string": {
|
|
pattern: /"""[\s\S]*?"""/,
|
|
greedy: !0,
|
|
alias: "string",
|
|
},
|
|
"string-literal": null,
|
|
hashbang: { pattern: /^#!\/.+/, greedy: !0, alias: "comment" },
|
|
attribute: { pattern: /#!?[ \t\u3000]*\w+/, alias: "keyword" },
|
|
"class-name": [
|
|
{ pattern: /(\bclass\s+)\w+/, lookbehind: !0 },
|
|
/\b[A-Z][a-z\d_]*\b/,
|
|
],
|
|
constant: /\b[A-Z][A-Z\d_]*\b/,
|
|
null: { pattern: /\bnull\b/, alias: "keyword" },
|
|
keyword:
|
|
/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
number: /\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,
|
|
function: /\b[a-z_]\w*(?=\s*[({])/i,
|
|
operator: /<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,
|
|
punctuation: /[\[\](){}.,;]/,
|
|
}),
|
|
(e.languages.wren["string-literal"] = {
|
|
pattern:
|
|
/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
inside: {
|
|
interpolation: {
|
|
pattern:
|
|
/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,
|
|
lookbehind: !0,
|
|
inside: {
|
|
expression: {
|
|
pattern: /^(%\()[\s\S]+(?=\)$)/,
|
|
lookbehind: !0,
|
|
inside: e.languages.wren,
|
|
},
|
|
"interpolation-punctuation": {
|
|
pattern: /^%\(|\)$/,
|
|
alias: "punctuation",
|
|
},
|
|
},
|
|
},
|
|
string: /[\s\S]+/,
|
|
},
|
|
});
|
|
}
|
|
(t.exports = r), (r.displayName = "wren"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|