site/node_modules/shiki/dist/langs/dream-maker.mjs

7 lines
11 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "Dream Maker", "fileTypes": ["dm", "dme"], "foldingStartMarker": "(?x)\n/\\*\\*(?!\\*)\n|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))", "foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}", "name": "dream-maker", "patterns": [{ "include": "#preprocessor-rule-enabled" }, { "include": "#preprocessor-rule-disabled" }, { "include": "#preprocessor-rule-other" }, { "include": "#comments" }, { "captures": { "1": { "name": "storage.type.dm" }, "2": { "name": "storage.modifier.dm" }, "3": { "name": "storage.type.dm" }, "5": { "name": "variable.other.dm" } }, "match": "(?x)\n(var)[\\/ ]\n(?:(static|global|tmp|const)\\/)?\n(?:(datum|atom(?:\\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\/)?\n(?:\n([a-zA-Z0-9_\\-$]*)\\/\n)*\n\n([A-Za-z0-9_$]*)\\b", "name": "meta.initialization.dm" }, { "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b", "name": "constant.numeric.dm" }, { "match": "\\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while)\\b", "name": "keyword.control.dm" }, { "match": "\\b(del|new)\\b", "name": "keyword.other.dm" }, { "match": "\\b(proc|verb|datum|atom(/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\b", "name": "storage.type.dm" }, { "match": "\\b(as|const|global|set|static|tmp)\\b", "name": "storage.modifier.dm" }, { "match": "\\b(usr|world|src|args)\\b", "name": "variable.language.dm" }, { "match": "(\\?|(>|<)(=)?|\\.|:|/(=)?|~|\\+(\\+|=)?|-(-|=)?|\\*(\\*|=)?|%|>>|<<|=(=)?|!(=)?|<>|&|&&|\\^|\\||\\|\\||\\bto\\b|\\bin\\b|\\bstep\\b)", "name": "keyword.operator.dm" }, { "match": "\\b([A-Z_][A-Z_0-9]*)\\b", "name": "constant.language.dm" }, { "match": "\\bnull\\b", "name": "constant.language.dm" }, { "begin": '{"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.dm" } }, "end": '"}', "endCaptures": { "0": { "name": "punctuation.definition.string.end.dm" } }, "name": "string.quoted.triple.dm", "patterns": [{ "include": "#string_escaped_char" }, { "include": "#string_embedded_expression" }] }, { "begin": '"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.dm" } }, "end": '"', "endCaptures": { "0": { "name": "punctuation.definition.string.end.dm" } }, "name": "string.quoted.double.dm", "patterns": [{ "include": "#string_escaped_char" }, { "include": "#string_embedded_expression" }] }, { "begin": "'", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.dm" } }, "end": "'", "endCaptures": { "0": { "name": "punctuation.definition.string.end.dm" } }, "name": "string.quoted.single.dm", "patterns": [{ "include": "#string_escaped_char" }] }, { "begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*))\n(?:\n(\\()\n(\n\\s* \\g<id> \\s*\n((,) \\s* \\g<id> \\s*)*\n(?:\\.\\.\\.)?\n)\n(\\))\n)", "beginCaptures": { "1": { "name": "keyword.control.directive.define.dm" }, "2": { "name": "punctuation.definition.directive.dm" }, "3": { "name": "entity.name.function.preprocessor.dm" }, "5": { "name": "punctuation.definition.parameters.begin.dm" }, "6": { "name": "variable.parameter.preprocessor.dm" }, "8": { "name": "punctuation.separator.parameters.dm" }, "9": { "name": "punctuation.definition.parameters.end.dm" } }, "end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)", "name": "meta.preprocessor.macro.dm", "patterns": [{ "include": "$base" }] }, { "begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*))", "beginCaptures": { "1": { "name": "keyword.control.directive.define.dm" }, "2": { "name": "punctuation.definition.directive.dm" }, "3": { "name": "variable.other.preprocessor.dm" } }, "end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)", "name": "meta.preprocessor.macro.dm", "patterns": [{ "include": "$base" }] }, { "begin": "^\\s*(#\\s*(error|warn))\\b", "captures": { "1": { "name": "keyword.control.import.error.dm" } }, "end": "$", "name": "meta.preprocessor.diagnostic.dm", "patterns": [{ "match": "(?>\\\\\\s*\\n)", "name": "
var dreamMaker = [
lang
];
export { dreamMaker as default };