57 lines
1.9 KiB
JavaScript
57 lines
1.9 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 219095
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
(e.languages.gn = {
|
|
comment: { pattern: /#.*/, greedy: !0 },
|
|
"string-literal": {
|
|
pattern: /(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
inside: {
|
|
interpolation: {
|
|
pattern:
|
|
/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,
|
|
lookbehind: !0,
|
|
inside: {
|
|
number: /^\$0x[\s\S]{2}$/,
|
|
variable: /^\$\w+$/,
|
|
"interpolation-punctuation": {
|
|
pattern: /^\$\{|\}$/,
|
|
alias: "punctuation",
|
|
},
|
|
expression: { pattern: /[\s\S]+/, inside: null },
|
|
},
|
|
},
|
|
string: /[\s\S]+/,
|
|
},
|
|
},
|
|
keyword: /\b(?:else|if)\b/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
"builtin-function": {
|
|
pattern:
|
|
/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,
|
|
alias: "keyword",
|
|
},
|
|
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
constant:
|
|
/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,
|
|
number: /-?\b\d+\b/,
|
|
operator: /[-+!=<>]=?|&&|\|\|/,
|
|
punctuation: /[(){}[\],.]/,
|
|
}),
|
|
(e.languages.gn[
|
|
"string-literal"
|
|
].inside.interpolation.inside.expression.inside = e.languages.gn),
|
|
(e.languages.gni = e.languages.gn);
|
|
}
|
|
(t.exports = r), (r.displayName = "gn"), (r.aliases = ["gni"]);
|
|
};
|
|
|
|
export default moduleFactory;
|