site/node_modules/shiki/dist/langs/common-lisp.mjs

7 lines
24 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "Common Lisp", "fileTypes": ["lisp", "lsp", "l", "cl", "asd", "asdf"], "foldingStartMarker": "\\(", "foldingStopMarker": "\\)", "name": "common-lisp", "patterns": [{ "include": "#comment" }, { "include": "#block-comment" }, { "include": "#string" }, { "include": "#escape" }, { "include": "#constant" }, { "include": "#lambda-list" }, { "include": "#function" }, { "include": "#style-guide" }, { "include": "#def-name" }, { "include": "#macro" }, { "include": "#symbol" }, { "include": "#special-operator" }, { "include": "#declaration" }, { "include": "#type" }, { "include": "#class" }, { "include": "#condition-type" }, { "include": "#package" }, { "include": "#variable" }, { "include": "#punctuation" }], "repository": { "block-comment": { "begin": "\\#\\|", "contentName": "comment.block.commonlisp", "end": "\\|\\#", "name": "comment", "patterns": [{ "include": "#block-comment", "name": "comment" }] }, "class": { "match": "(?xi)\n(?<=^|\\s|\\()\n(?:two-way-stream|synonym-stream|symbol|structure-object|structure-class|string-stream|stream|standard-object|standard-method|\nstandard-generic-function|standard-class|sequence|restart|real|readtable|ratio|random-state|package|number|method|integer|hash-table|\ngeneric-function|file-stream|echo-stream|concatenated-stream|class|built-in-class|broadcast-stream|bit-vector|array)\n(?=(\\s|\\(|\\)))", "name": "support.class.commonlisp" }, "comment": { "begin": "(^[ \\t]+)?(?=;)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.commonlisp" } }, "end": "(?!\\G)", "patterns": [{ "begin": ";", "beginCaptures": { "0": { "name": "punctuation.definition.comment.commonlisp" } }, "end": "\\n", "name": "comment.line.semicolon.commonlisp" }] }, "condition-type": { "match": "(?xi)\n(?<=^|\\s|\\()\n(?:warning|undefined-function|unbound-variable|unbound-slot|type-error|style-warning|stream-error|storage-condition|simple-warning|\nsimple-type-error|simple-error|simple-condition|serious-condition|reader-error|program-error|print-not-readable|parse-error|package-error|\nfloating-point-underflow|floating-point-overflow|floating-point-invalid-operation|floating-point-inexact|file-error|error|end-of-file|\ndivision-by-zero|control-error|condition|cell-error|arithmetic-error)\n(?=(\\s|\\(|\\)))", "name": "support.type.exception.commonlisp" }, "constant": { "patterns": [{ "match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(?:t|single-float-negative-epsilon|single-float-epsilon|short-float-negative-epsilon|short-float-epsilon|pi|\nnil|multiple-values-limit|most-positive-single-float|most-positive-short-float|most-positive-long-float|\nmost-positive-fixnum|most-positive-double-float|most-negative-single-float|most-negative-short-float|\nmost-negative-long-float|most-negative-fixnum|most-negative-double-float|long-float-negative-epsilon|\nlong-float-epsilon|least-positive-single-float|least-positive-short-float|least-positive-normalized-single-float|\nleast-positive-normalized-short-float|least-positive-normalized-long-float|least-positive-normalized-double-float|\nleast-positive-long-float|least-positive-double-float|least-negative-single-float|least-negative-short-float|\nleast-negative-normalized-single-float|least-negative-normalized-short-float|least-negative-normalized-long-float|\nleast-negative-normalized-double-float|least-negative-long-float|least-negative-double-float|lambda-parameters-limit|\nlambda-list-keywords|internal-time-units-per-second|double-float-negative-epsilon|double-float-epsilon|char-code-limit|\ncall-arguments-limit|boole-xor|boole-set|boole-orc2|boole-orc1|boole-nor|boole-nand|boole-ior|boole-eqv|boole-clr|\nboole-c2|boole-c1|boole-andc2|boole-andc1|boole-and|boole-2|boole-1|array-total-size-limit|array-rank-limit|array-dimension-limit)\n(?=(\\s|\\(|\\)))", "name": "constant.language.commonlisp" }, { "match": "(?x)\n(?<=^|\\s|\\(|,@|,\\.|,)\n([+-]?[0-9]+(?:\\/[0-9]+)*|\n[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|\n(\\#b|\\#B)[01\\/+-]+|(\\#o|\\#O)[0-7\\/+-]+|(\\#x|\\#X)[0-9a-fA-F\\/+-]+|(\\#[0-9]+[rR]?)[0-9a-zA-Z\\/+-]+)\n(?=
var commonLisp = [
lang
];
export { commonLisp as default };