text/js/dos-CvAlkxDp.chunk.mjs.map

1 строка
4.0 KiB
Plaintext

{"version":3,"file":"dos-CvAlkxDp.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/dos.js"],"sourcesContent":["/*\nLanguage: Batch file (DOS)\nAuthor: Alexander Makarov <sam@rmcreative.ru>\nContributors: Anton Kochkov <anton.kochkov@gmail.com>\nWebsite: https://en.wikipedia.org/wiki/Batch_file\nCategory: scripting\n*/\n\n/** @type LanguageFn */\nfunction dos(hljs) {\n const COMMENT = hljs.COMMENT(\n /^\\s*@?rem\\b/, /$/,\n { relevance: 10 }\n );\n const LABEL = {\n className: 'symbol',\n begin: '^\\\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\\\s+label)',\n relevance: 0\n };\n const KEYWORDS = [\n \"if\",\n \"else\",\n \"goto\",\n \"for\",\n \"in\",\n \"do\",\n \"call\",\n \"exit\",\n \"not\",\n \"exist\",\n \"errorlevel\",\n \"defined\",\n \"equ\",\n \"neq\",\n \"lss\",\n \"leq\",\n \"gtr\",\n \"geq\"\n ];\n const BUILT_INS = [\n \"prn\",\n \"nul\",\n \"lpt3\",\n \"lpt2\",\n \"lpt1\",\n \"con\",\n \"com4\",\n \"com3\",\n \"com2\",\n \"com1\",\n \"aux\",\n \"shift\",\n \"cd\",\n \"dir\",\n \"echo\",\n \"setlocal\",\n \"endlocal\",\n \"set\",\n \"pause\",\n \"copy\",\n \"append\",\n \"assoc\",\n \"at\",\n \"attrib\",\n \"break\",\n \"cacls\",\n \"cd\",\n \"chcp\",\n \"chdir\",\n \"chkdsk\",\n \"chkntfs\",\n \"cls\",\n \"cmd\",\n \"color\",\n \"comp\",\n \"compact\",\n \"convert\",\n \"date\",\n \"dir\",\n \"diskcomp\",\n \"diskcopy\",\n \"doskey\",\n \"erase\",\n \"fs\",\n \"find\",\n \"findstr\",\n \"format\",\n \"ftype\",\n \"graftabl\",\n \"help\",\n \"keyb\",\n \"label\",\n \"md\",\n \"mkdir\",\n \"mode\",\n \"more\",\n \"move\",\n \"path\",\n \"pause\",\n \"print\",\n \"popd\",\n \"pushd\",\n \"promt\",\n \"rd\",\n \"recover\",\n \"rem\",\n \"rename\",\n \"replace\",\n \"restore\",\n \"rmdir\",\n \"shift\",\n \"sort\",\n \"start\",\n \"subst\",\n \"time\",\n \"title\",\n \"tree\",\n \"type\",\n \"ver\",\n \"verify\",\n \"vol\",\n // winutils\n \"ping\",\n \"net\",\n \"ipconfig\",\n \"taskkill\",\n \"xcopy\",\n \"ren\",\n \"del\"\n ];\n return {\n name: 'Batch file (DOS)',\n aliases: [\n 'bat',\n 'cmd'\n ],\n case_insensitive: true,\n illegal: /\\/\\*/,\n keywords: {\n keyword: KEYWORDS,\n built_in: BUILT_INS\n },\n contains: [\n {\n className: 'variable',\n begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/\n },\n {\n className: 'function',\n begin: LABEL.begin,\n end: 'goto:eof',\n contains: [\n hljs.inherit(hljs.TITLE_MODE, { begin: '([_a-zA-Z]\\\\w*\\\\.)*([_a-zA-Z]\\\\w*:)?[_a-zA-Z]\\\\w*' }),\n COMMENT\n ]\n },\n {\n className: 'number',\n begin: '\\\\b\\\\d+',\n relevance: 0\n },\n COMMENT\n ]\n };\n}\n\nmodule.exports = dos;\n"],"names":["dos","hljs","COMMENT","dos_1"],"mappings":";4YASA,SAASA,EAAIC,EAAM,CACjB,MAAMC,EAAUD,EAAK,QACnB,cAAe,IACf,CAAE,UAAW,EAAI,CACrB,EAqHE,MAAO,CACL,KAAM,mBACN,QAAS,CACP,MACA,KACD,EACD,iBAAkB,GAClB,QAAS,OACT,SAAU,CACR,QAxHa,CACf,KACA,OACA,OACA,MACA,KACA,KACA,OACA,OACA,MACA,QACA,aACA,UACA,MACA,MACA,MACA,MACA,MACA,KACJ,EAsGM,SArGc,CAChB,MACA,MACA,OACA,OACA,OACA,MACA,OACA,OACA,OACA,OACA,MACA,QACA,KACA,MACA,OACA,WACA,WACA,MACA,QACA,OACA,SACA,QACA,KACA,SACA,QACA,QACA,KACA,OACA,QACA,SACA,UACA,MACA,MACA,QACA,OACA,UACA,UACA,OACA,MACA,WACA,WACA,SACA,QACA,KACA,OACA,UACA,SACA,QACA,WACA,OACA,OACA,QACA,KACA,QACA,OACA,OACA,OACA,OACA,QACA,QACA,OACA,QACA,QACA,KACA,UACA,MACA,SACA,UACA,UACA,QACA,QACA,OACA,QACA,QACA,OACA,QACA,OACA,OACA,MACA,SACA,MAEA,OACA,MACA,WACA,WACA,QACA,MACA,KACJ,CAYK,EACD,SAAU,CACR,CACE,UAAW,WACX,MAAO,0BACR,EACD,CACE,UAAW,WACX,MArIG,mDAsIH,IAAK,WACL,SAAU,CACRA,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAO,oDAAqD,EAC5FC,CACD,CACF,EACD,CACE,UAAW,SACX,MAAO,UACP,UAAW,CACZ,EACDA,CACD,CACL,CACA,CAEA,IAAAC,EAAiBH","x_google_ignoreList":[0]}