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

106 lines
3.4 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 962560
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
!(function (e) {
var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,
i = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(
/<SP_BS>/g,
function () {
return t;
},
),
r =
/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/
.source,
a = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(
/<STR>/g,
function () {
return r;
},
),
n = { pattern: RegExp(r), greedy: !0 },
A = { pattern: /(^[ \t]*)#.*/m, lookbehind: !0, greedy: !0 };
function s(e, t) {
return RegExp(
(e = e
.replace(/<OPT>/g, function () {
return a;
})
.replace(/<SP>/g, function () {
return i;
})),
t,
);
}
(e.languages.docker = {
instruction: {
pattern:
/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,
lookbehind: !0,
greedy: !0,
inside: {
options: {
pattern: s(
/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,
"i",
),
lookbehind: !0,
greedy: !0,
inside: {
property: { pattern: /(^|\s)--[\w-]+/, lookbehind: !0 },
string: [
n,
{ pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/, lookbehind: !0 },
],
operator: /\\$/m,
punctuation: /=/,
},
},
keyword: [
{
pattern: s(
/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/
.source,
"i",
),
lookbehind: !0,
greedy: !0,
},
{
pattern: s(
/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/
.source,
"i",
),
lookbehind: !0,
greedy: !0,
},
{
pattern: s(/(^ONBUILD<SP>)\w+/.source, "i"),
lookbehind: !0,
greedy: !0,
},
{ pattern: /^\w+/, greedy: !0 },
],
comment: A,
string: n,
variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
operator: /\\$/m,
},
},
comment: A,
}),
(e.languages.dockerfile = e.languages.docker);
})(e);
}
(t.exports = r), (r.displayName = "docker"), (r.aliases = ["dockerfile"]);
};
export default moduleFactory;