59 lines
1.8 KiB
JavaScript
59 lines
1.8 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 83546
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
var t = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
|
|
function i(e) {
|
|
return e.replace(/__/g, function () {
|
|
return t;
|
|
});
|
|
}
|
|
e.languages.toml = {
|
|
comment: { pattern: /#.*/, greedy: !0 },
|
|
table: {
|
|
pattern: RegExp(
|
|
i(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),
|
|
"m",
|
|
),
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
alias: "class-name",
|
|
},
|
|
key: {
|
|
pattern: RegExp(
|
|
i(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),
|
|
"m",
|
|
),
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
alias: "property",
|
|
},
|
|
string: {
|
|
pattern:
|
|
/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,
|
|
greedy: !0,
|
|
},
|
|
date: [
|
|
{
|
|
pattern:
|
|
/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,
|
|
alias: "number",
|
|
},
|
|
{ pattern: /\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/, alias: "number" },
|
|
],
|
|
number:
|
|
/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
punctuation: /[.,=[\]{}]/,
|
|
};
|
|
}
|
|
(t.exports = r), (r.displayName = "toml"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|