57 lines
1.8 KiB
JavaScript
57 lines
1.8 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 330936
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
(e.languages["excel-formula"] = {
|
|
comment: {
|
|
pattern: /(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
},
|
|
string: { pattern: /"(?:[^"]|"")*"(?!")/, greedy: !0 },
|
|
reference: {
|
|
pattern:
|
|
/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,
|
|
greedy: !0,
|
|
alias: "string",
|
|
inside: {
|
|
operator: /!$/,
|
|
punctuation: /'/,
|
|
sheet: { pattern: /[^[\]]+$/, alias: "function" },
|
|
file: { pattern: /\[[^[\]]+\]$/, inside: { punctuation: /[[\]]/ } },
|
|
path: /[\s\S]+/,
|
|
},
|
|
},
|
|
"function-name": { pattern: /\b[A-Z]\w*(?=\()/i, alias: "keyword" },
|
|
range: {
|
|
pattern:
|
|
/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,
|
|
alias: "property",
|
|
inside: {
|
|
operator: /:/,
|
|
cell: /\$?[A-Z]+\$?\d+/i,
|
|
column: /\$?[A-Z]+/i,
|
|
row: /\$?\d+/,
|
|
},
|
|
},
|
|
cell: {
|
|
pattern: /\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,
|
|
alias: "property",
|
|
},
|
|
number: /(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,
|
|
boolean: /\b(?:FALSE|TRUE)\b/i,
|
|
operator: /[-+*/^%=&,]|<[=>]?|>=?/,
|
|
punctuation: /[[\]();{}|]/,
|
|
}),
|
|
(e.languages.xlsx = e.languages.xls = e.languages["excel-formula"]);
|
|
}
|
|
(t.exports = r), (r.displayName = "excelFormula"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|