Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

171 lines
5.4 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 812722
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
!(function (e) {
function t(e) {
return RegExp(/(\()/.source + "(?:" + e + ")" + /(?=[\s\)])/.source);
}
function i(e) {
return RegExp(
/([\s([])/.source + "(?:" + e + ")" + /(?=[\s)])/.source,
);
}
var r = /(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,
a = "&" + r,
n = "(\\()",
A = "(?=\\s)",
s =
/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/
.source,
o = {
heading: { pattern: /;;;.*/, alias: ["comment", "title"] },
comment: /;.*/,
string: {
pattern: /"(?:[^"\\]|\\.)*"/,
greedy: !0,
inside: {
argument: /[-A-Z]+(?=[.,\s])/,
symbol: RegExp("`" + r + "'"),
},
},
"quoted-symbol": {
pattern: RegExp("#?'" + r),
alias: ["variable", "symbol"],
},
"lisp-property": { pattern: RegExp(":" + r), alias: "property" },
splice: {
pattern: RegExp(",@?" + r),
alias: ["symbol", "variable"],
},
keyword: [
{
pattern: RegExp(
n +
"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)" +
A,
),
lookbehind: !0,
},
{
pattern: RegExp(
n +
"(?:append|by|collect|concat|do|finally|for|in|return)" +
A,
),
lookbehind: !0,
},
],
declare: {
pattern: t(/declare/.source),
lookbehind: !0,
alias: "keyword",
},
interactive: {
pattern: t(/interactive/.source),
lookbehind: !0,
alias: "keyword",
},
boolean: { pattern: i(/nil|t/.source), lookbehind: !0 },
number: { pattern: i(/[-+]?\d+(?:\.\d*)?/.source), lookbehind: !0 },
defvar: {
pattern: RegExp(n + "def(?:const|custom|group|var)\\s+" + r),
lookbehind: !0,
inside: { keyword: /^def[a-z]+/, variable: RegExp(r) },
},
defun: {
pattern: RegExp(
n +
/(?:cl-)?(?:defmacro|defun\*?)\s+/.source +
r +
/\s+\(/.source +
s +
/\)/.source,
),
lookbehind: !0,
greedy: !0,
inside: {
keyword: /^(?:cl-)?def\S+/,
arguments: null,
function: { pattern: RegExp("(^\\s)" + r), lookbehind: !0 },
punctuation: /[()]/,
},
},
lambda: {
pattern: RegExp(
n +
"lambda\\s+\\(\\s*(?:&?" +
r +
"(?:\\s+&?" +
r +
")*\\s*)?\\)",
),
lookbehind: !0,
greedy: !0,
inside: {
keyword: /^lambda/,
arguments: null,
punctuation: /[()]/,
},
},
car: { pattern: RegExp(n + r), lookbehind: !0 },
punctuation: [
/(?:['`,]?\(|[)\[\]])/,
{ pattern: /(\s)\.(?=\s)/, lookbehind: !0 },
],
},
l = {
"lisp-marker": RegExp(a),
varform: {
pattern: RegExp(
/\(/.source + r + /\s+(?=\S)/.source + s + /\)/.source,
),
inside: o,
},
argument: {
pattern: RegExp(/(^|[\s(])/.source + r),
lookbehind: !0,
alias: "variable",
},
rest: o,
},
c = "\\S+(?:\\s+\\S+)*",
d = {
pattern: RegExp(n + s + "(?=\\))"),
lookbehind: !0,
inside: {
"rest-vars": {
pattern: RegExp("&(?:body|rest)\\s+" + c),
inside: l,
},
"other-marker-vars": {
pattern: RegExp("&(?:aux|optional)\\s+" + c),
inside: l,
},
keys: {
pattern: RegExp("&key\\s+" + c + "(?:\\s+&allow-other-keys)?"),
inside: l,
},
argument: { pattern: RegExp(r), alias: "variable" },
punctuation: /[()]/,
},
};
(o.lambda.inside.arguments = d),
(o.defun.inside.arguments = e.util.clone(d)),
(o.defun.inside.arguments.inside.sublist = d),
(e.languages.lisp = o),
(e.languages.elisp = o),
(e.languages.emacs = o),
(e.languages["emacs-lisp"] = o);
})(e);
}
(t.exports = r), (r.displayName = "lisp"), (r.aliases = []);
};
export default moduleFactory;