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

7 lines
798 KiB
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "Emacs Lisp", "fileTypes": ["el", "elc", "eld", "spacemacs", "_emacs", "emacs", "emacs.desktop", "abbrev_defs", "Project.ede", "Cask", "gnus", "viper"], "firstLineMatch": "(?x)\n# Hashbang\n^\\#!.*(?:\\s|\\/|(?<=!)\\b)\n emacs\n(?:$|\\s)\n|\n# Modeline\n(?:\n # Emacs\n -\\*-(?i:[ \\t]*(?=[^:;\\s]+[ \\t]*-\\*-)|(?:.*?[ \\t;]|(?<=-\\*-))[ \\t]*mode[ \\t]*:[ \\t]*)\n (?i:emacs-lisp)\n (?=[ \\t;]|(?<![-*])-\\*-).*?-\\*-\n |\n # Vim\n (?:(?:^|[ \\t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \\t]ex)(?=:(?=[ \\t]*set?[ \\t][^\\r\\n:]+:)|:(?![ \\t]*set?[ \\t]))\n (?:(?:[ \\t]*:[ \\t]*|[ \\t])\\w*(?:[ \\t]*=(?:[^\\\\\\s]|\\\\.)*)?)*[ \\t:]\n (?:filetype|ft|syntax)[ \\t]*=\n (?i:emacs-lisp|elisp)\n (?=$|\\s|:)\n)", "name": "emacs-lisp", "patterns": [{ "begin": "\\A(#!)", "beginCaptures": { "1": { "name": "punctuation.definition.comment.hashbang.emacs.lisp" } }, "end": "$", "name": "comment.line.hashbang.emacs.lisp" }, { "include": "#main" }], "repository": { "archive-sources": { "captures": { "1": { "name": "support.language.constant.archive-source.emacs.lisp" } }, "match": "(?x)\\b(?<=[\\s()\\[]|^)\n(SC|gnu|marmalade|melpa-stable|melpa|org)\n(?=[\\s()]|$) \\b" }, "arg-values": { "patterns": [{ "match": "&(optional|rest)(?=\\s|\\))", "name": "constant.language.$1.arguments.emacs.lisp" }] }, "autoload": { "begin": "^(;;;###)(autoload)", "beginCaptures": { "1": { "name": "punctuation.definition.comment.emacs.lisp" }, "2": { "name": "storage.modifier.autoload.emacs.lisp" } }, "contentName": "string.unquoted.other.emacs.lisp", "end": "$", "name": "comment.line.semicolon.autoload.emacs.lisp" }, "binding": { "match": "\\b(?<=[\\s()\\[]|^)(let\\*?|set[fq]?)(?=[\\s()]|$)", "name": "storage.binding.emacs.lisp" }, "boolean": { "patterns": [{ "match": "\\b(?<=[\\s()\\[]|^)t(?=[\\s()]|$)\\b", "name": "constant.boolean.true.emacs.lisp" }, { "match": "\\b(?<=[\\s()\\[]|^)(nil)(?=[\\s()]|$)\\b", "name": "constant.language.nil.emacs.lisp" }] }, "cask": { "match": "\\b(?<=[\\s()\\[]|^)(?:files|source|development|depends-on|package-file|package-descriptor|package)(?=[\\s()]|$)\\b", "name": "support.function.emacs.lisp" }, "comment": { "begin": ";", "beginCaptures": { "0": { "name": "punctuation.definition.comment.emacs.lisp" } }, "end": "$", "name": "comment.line.semicolon.emacs.lisp", "patterns": [{ "include": "#modeline" }, { "include": "#eldoc" }] }, "definition": { "patterns": [{ "begin": "(\\()(?:(cl-(defun|defmacro|defsubst))|(defun|defmacro|defsubst))(?!-)\\b(?:\\s*(?![-+\\d])([-+=*/\\w~!@$%^&:<>{}?]+))?", "beginCaptures": { "1": { "name": "punctuation.section.expression.begin.emacs.lisp" }, "2": { "name": "storage.type.$3.function.cl-lib.emacs.lisp" }, "4": { "name": "storage.type.$4.function.emacs.lisp" }, "5": { "name": "entity.function.name.emacs.lisp" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.expression.end.emacs.lisp" } }, "name": "meta.function.definition.emacs.lisp", "patterns": [{ "include": "#defun-innards" }] }, { "match": "\\b(?<=[\\s()\\[]|^)defun(?=[\\s()]|$)", "name": "storage.type.function.emacs.lisp" }, { "begin": "(?x) (?<=\\s|^) (\\()\n(def(advice|class|const|custom|face|image|group|package|struct|subst|theme|type|var))\n(?:\\s+([-+=*/\\w~!@$%^&:<>{}?]+))?\n(?=[\\s()]|$)", "beginCaptures": { "1": { "name": "punctuation.section.expression.begin.emacs.lisp" }, "2": { "name": "storage.type.$3.emacs.lisp" }, "4": { "name": "entity.name.$3.emacs.lisp" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.expression.end.emacs.lisp" } }, "name": "meta.$3.definition.emacs.lisp", "patterns": [{ "include": "$self" }] }, { "match": "\\b(?<=[\\s()\\[]|^)(define-(?:condition|widget))(?=[\\s()]|$)\\b", "name": "storage.type.$1.emacs.lisp" }] }, "defun-innards": { "patterns": [{ "begin": "\\G\\s*(\\()", "beginCaptures": { "0": { "name": "punctuation.section.expression.begin.emacs.lisp" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.expression.end.emacs.lisp" } }, "name": "meta.argument-list.expression.emacs.lisp", "patterns"
var emacsLisp = [
lang
];
export { emacsLisp as default };