63 lines
2.0 KiB
JavaScript
63 lines
2.0 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 500058
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
var t, i;
|
|
(i = {
|
|
"equation-command": {
|
|
pattern: (t = /\\(?:[^a-z()[\]]|[a-z*]+)/i),
|
|
alias: "regex",
|
|
},
|
|
}),
|
|
(e.languages.latex = {
|
|
comment: /%.*/,
|
|
cdata: {
|
|
pattern:
|
|
/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
|
|
lookbehind: !0,
|
|
},
|
|
equation: [
|
|
{
|
|
pattern:
|
|
/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,
|
|
inside: i,
|
|
alias: "string",
|
|
},
|
|
{
|
|
pattern:
|
|
/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
|
|
lookbehind: !0,
|
|
inside: i,
|
|
alias: "string",
|
|
},
|
|
],
|
|
keyword: {
|
|
pattern:
|
|
/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
|
|
lookbehind: !0,
|
|
},
|
|
url: { pattern: /(\\url\{)[^}]+(?=\})/, lookbehind: !0 },
|
|
headline: {
|
|
pattern:
|
|
/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
|
|
lookbehind: !0,
|
|
alias: "class-name",
|
|
},
|
|
function: { pattern: t, alias: "selector" },
|
|
punctuation: /[[\]{}&]/,
|
|
}),
|
|
(e.languages.tex = e.languages.latex),
|
|
(e.languages.context = e.languages.latex);
|
|
}
|
|
(t.exports = r),
|
|
(r.displayName = "latex"),
|
|
(r.aliases = ["tex", "context"]);
|
|
};
|
|
|
|
export default moduleFactory;
|