96 lines
3.5 KiB
JavaScript
96 lines
3.5 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 10140
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
var t, i, r;
|
|
(t =
|
|
/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/),
|
|
(r = {
|
|
pattern: RegExp(
|
|
(i = /(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/
|
|
.source) + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source,
|
|
),
|
|
lookbehind: !0,
|
|
inside: {
|
|
namespace: {
|
|
pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
|
|
inside: { punctuation: /\./ },
|
|
},
|
|
punctuation: /\./,
|
|
},
|
|
}),
|
|
(e.languages.java = e.languages.extend("clike", {
|
|
string: {
|
|
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
},
|
|
"class-name": [
|
|
r,
|
|
{
|
|
pattern: RegExp(i + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),
|
|
lookbehind: !0,
|
|
inside: r.inside,
|
|
},
|
|
],
|
|
keyword: t,
|
|
function: [
|
|
e.languages.clike.function,
|
|
{ pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 },
|
|
],
|
|
number:
|
|
/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
|
|
operator: {
|
|
pattern:
|
|
/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
|
|
lookbehind: !0,
|
|
},
|
|
})),
|
|
e.languages.insertBefore("java", "string", {
|
|
"triple-quoted-string": {
|
|
pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
|
|
greedy: !0,
|
|
alias: "string",
|
|
},
|
|
char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 },
|
|
}),
|
|
e.languages.insertBefore("java", "class-name", {
|
|
annotation: {
|
|
pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
|
|
lookbehind: !0,
|
|
alias: "punctuation",
|
|
},
|
|
generics: {
|
|
pattern:
|
|
/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
|
|
inside: {
|
|
"class-name": r,
|
|
keyword: t,
|
|
punctuation: /[<>(),.:]/,
|
|
operator: /[?&|]/,
|
|
},
|
|
},
|
|
namespace: {
|
|
pattern: RegExp(
|
|
/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(
|
|
/<keyword>/g,
|
|
function () {
|
|
return t.source;
|
|
},
|
|
),
|
|
),
|
|
lookbehind: !0,
|
|
inside: { punctuation: /\./ },
|
|
},
|
|
});
|
|
}
|
|
(t.exports = r), (r.displayName = "java"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|