105 lines
3.1 KiB
JavaScript
105 lines
3.1 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 137803
|
|
* 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 = {
|
|
pattern: /(^[ \t]*| {2}|\t)#.*/m,
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
},
|
|
i = {
|
|
pattern:
|
|
/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,
|
|
lookbehind: !0,
|
|
inside: { punctuation: /^[$@&%]\{|\}$/ },
|
|
};
|
|
function r(e, r) {
|
|
var a = {};
|
|
for (var n in ((a["section-header"] = {
|
|
pattern: /^ ?\*{3}.+?\*{3}/,
|
|
alias: "keyword",
|
|
}),
|
|
r))
|
|
a[n] = r[n];
|
|
return (
|
|
(a.tag = {
|
|
pattern: /([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,
|
|
lookbehind: !0,
|
|
inside: { punctuation: /\[|\]/ },
|
|
}),
|
|
(a.variable = i),
|
|
(a.comment = t),
|
|
{
|
|
pattern: RegExp(
|
|
/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(
|
|
/<name>/g,
|
|
function () {
|
|
return e;
|
|
},
|
|
),
|
|
"im",
|
|
),
|
|
alias: "section",
|
|
inside: a,
|
|
}
|
|
);
|
|
}
|
|
var a = {
|
|
pattern:
|
|
/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
|
|
lookbehind: !0,
|
|
alias: "string",
|
|
},
|
|
n = {
|
|
pattern: /([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,
|
|
lookbehind: !0,
|
|
alias: "function",
|
|
inside: { variable: i },
|
|
},
|
|
A = {
|
|
pattern:
|
|
/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
|
|
lookbehind: !0,
|
|
inside: { variable: i },
|
|
};
|
|
(e.languages.robotframework = {
|
|
settings: r("Settings", {
|
|
documentation: {
|
|
pattern:
|
|
/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
|
|
lookbehind: !0,
|
|
alias: "string",
|
|
},
|
|
property: {
|
|
pattern: /([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
|
|
lookbehind: !0,
|
|
},
|
|
}),
|
|
variables: r("Variables"),
|
|
"test-cases": r("Test Cases", {
|
|
"test-name": n,
|
|
documentation: a,
|
|
property: A,
|
|
}),
|
|
keywords: r("Keywords", {
|
|
"keyword-name": n,
|
|
documentation: a,
|
|
property: A,
|
|
}),
|
|
tasks: r("Tasks", { "task-name": n, documentation: a, property: A }),
|
|
comment: t,
|
|
}),
|
|
(e.languages.robot = e.languages.robotframework);
|
|
})(e);
|
|
}
|
|
(t.exports = r), (r.displayName = "robotframework"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|