54 lines
2.1 KiB
JavaScript
54 lines
2.1 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 467783
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
var r = e.r(10140);
|
|
function a(e) {
|
|
e.register(r),
|
|
(e.languages.scala = e.languages.extend("java", {
|
|
"triple-quoted-string": {
|
|
pattern: /"""[\s\S]*?"""/,
|
|
greedy: !0,
|
|
alias: "string",
|
|
},
|
|
string: { pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/, greedy: !0 },
|
|
keyword:
|
|
/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,
|
|
number:
|
|
/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,
|
|
builtin:
|
|
/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,
|
|
symbol: /'[^\d\s\\]\w*/,
|
|
})),
|
|
e.languages.insertBefore("scala", "triple-quoted-string", {
|
|
"string-interpolation": {
|
|
pattern:
|
|
/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,
|
|
greedy: !0,
|
|
inside: {
|
|
id: { pattern: /^\w+/, greedy: !0, alias: "function" },
|
|
escape: { pattern: /\\\$"|\$[$"]/, greedy: !0, alias: "symbol" },
|
|
interpolation: {
|
|
pattern: /\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,
|
|
greedy: !0,
|
|
inside: {
|
|
punctuation: /^\$\{?|\}$/,
|
|
expression: { pattern: /[\s\S]+/, inside: e.languages.scala },
|
|
},
|
|
},
|
|
string: /[\s\S]+/,
|
|
},
|
|
},
|
|
}),
|
|
delete e.languages.scala["class-name"],
|
|
delete e.languages.scala.function;
|
|
}
|
|
(t.exports = a), (a.displayName = "scala"), (a.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|