site/node_modules/shiki/dist/langs/reg.mjs
2024-10-14 08:09:33 +02:00

7 lines
2.5 KiB
JavaScript

const lang = Object.freeze({ "displayName": "Windows Registry Script", "fileTypes": ["reg", "REG"], "name": "reg", "patterns": [{ "match": "Windows Registry Editor Version 5\\.00|REGEDIT4", "name": "keyword.control.import.reg" }, { "captures": { "1": { "name": "punctuation.definition.comment.reg" } }, "match": "(;).*$", "name": "comment.line.semicolon.reg" }, { "captures": { "1": { "name": "punctuation.definition.section.reg" }, "2": { "name": "entity.section.reg" }, "3": { "name": "punctuation.definition.section.reg" } }, "match": "^\\s*(\\[(?!-))(.*?)(\\])", "name": "entity.name.function.section.add.reg" }, { "captures": { "1": { "name": "punctuation.definition.section.reg" }, "2": { "name": "entity.section.reg" }, "3": { "name": "punctuation.definition.section.reg" } }, "match": "^\\s*(\\[-)(.*?)(\\])", "name": "entity.name.function.section.delete.reg" }, { "captures": { "2": { "name": "punctuation.definition.quote.reg" }, "3": { "name": "support.function.regname.ini" }, "4": { "name": "punctuation.definition.quote.reg" }, "5": { "name": "punctuation.definition.equals.reg" }, "7": { "name": "keyword.operator.arithmetic.minus.reg" }, "9": { "name": "punctuation.definition.quote.reg" }, "10": { "name": "string.name.regdata.reg" }, "11": { "name": "punctuation.definition.quote.reg" }, "13": { "name": "support.type.dword.reg" }, "14": { "name": "keyword.operator.arithmetic.colon.reg" }, "15": { "name": "constant.numeric.dword.reg" }, "17": { "name": "support.type.dword.reg" }, "18": { "name": "keyword.operator.arithmetic.parenthesis.reg" }, "19": { "name": "keyword.operator.arithmetic.parenthesis.reg" }, "20": { "name": "constant.numeric.hex.size.reg" }, "21": { "name": "keyword.operator.arithmetic.parenthesis.reg" }, "22": { "name": "keyword.operator.arithmetic.colon.reg" }, "23": { "name": "constant.numeric.hex.reg" }, "24": { "name": "keyword.operator.arithmetic.linecontinuation.reg" }, "25": { "name": "comment.declarationline.semicolon.reg" } }, "match": `^(\\s*(["']?)(.+?)(["']?)\\s*(=))?\\s*((-)|((["'])(.*?)(["']))|(((?i:dword))(\\:)\\s*([\\dabcdefABCDEF]{1,8}))|(((?i:hex))((\\()([\\d]*)(\\)))?(\\:)(.*?)(\\\\?)))\\s*(;.*)?$`, "name": "meta.declaration.reg" }, { "match": "[0-9]+", "name": "constant.numeric.reg" }, { "match": "[a-fA-F]+", "name": "constant.numeric.hex.reg" }, { "match": ",+", "name": "constant.numeric.hex.comma.reg" }, { "match": "\\\\", "name": "keyword.operator.arithmetic.linecontinuation.reg" }], "scopeName": "source.reg" });
var reg = [
lang
];
export { reg as default };