mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-11 08:39:59 +01:00
1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"version":3,"file":"8812.a39ba81372544f20ba3f.js","mappings":"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","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/powershell.js"],"sourcesContent":["/*\nLanguage: PowerShell\nDescription: PowerShell is a task-based command-line shell and scripting language built on .NET.\nAuthor: David Mohundro <david@mohundro.com>\nContributors: Nicholas Blumhardt <nblumhardt@nblumhardt.com>, Victor Zhou <OiCMudkips@users.noreply.github.com>, Nicolas Le Gall <contact@nlegall.fr>\nWebsite: https://docs.microsoft.com/en-us/powershell/\n*/\n\nfunction powershell(hljs) {\n const TYPES = [\n \"string\",\n \"char\",\n \"byte\",\n \"int\",\n \"long\",\n \"bool\",\n \"decimal\",\n \"single\",\n \"double\",\n \"DateTime\",\n \"xml\",\n \"array\",\n \"hashtable\",\n \"void\"\n ];\n\n // https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands\n const VALID_VERBS =\n 'Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|'\n + 'Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|'\n + 'Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|'\n + 'Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|'\n + 'ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|'\n + 'Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|'\n + 'Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|'\n + 'Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|'\n + 'Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|'\n + 'Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|'\n + 'Unprotect|Use|ForEach|Sort|Tee|Where';\n\n const COMPARISON_OPERATORS =\n '-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|'\n + '-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|'\n + '-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|'\n + '-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|'\n + '-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|'\n + '-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|'\n + '-split|-wildcard|-xor';\n\n const KEYWORDS = {\n $pattern: /-?[A-z\\.\\-]+\\b/,\n keyword:\n 'if else foreach return do while until elseif begin for trap data dynamicparam '\n + 'end break throw param continue finally in switch exit filter try process catch '\n + 'hidden static parameter',\n // \"echo\" relevance has been set to 0 to avoid auto-detect conflicts with shell transcripts\n built_in:\n 'ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp '\n + 'cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx '\n + 'fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group '\n + 'gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi '\n + 'iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh '\n + 'popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp '\n + 'rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp '\n + 'spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write'\n // TODO: 'validate[A-Z]+' can't work in keywords\n };\n\n const TITLE_NAME_RE = /\\w[\\w\\d]*((-)[\\w\\d]+)*/;\n\n const BACKTICK_ESCAPE = {\n begin: '`[\\\\s\\\\S]',\n relevance: 0\n };\n\n const VAR = {\n className: 'variable',\n variants: [\n { begin: /\\$\\B/ },\n {\n className: 'keyword',\n begin: /\\$this/\n },\n { begin: /\\$[\\w\\d][\\w\\d_:]*/ }\n ]\n };\n\n const LITERAL = {\n className: 'literal',\n begin: /\\$(null|true|false)\\b/\n };\n\n const QUOTE_STRING = {\n className: \"string\",\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n {\n begin: /@\"/,\n end: /^\"@/\n }\n ],\n contains: [\n BACKTICK_ESCAPE,\n VAR,\n {\n className: 'variable',\n begin: /\\$[A-z]/,\n end: /[^A-z]/\n }\n ]\n };\n\n const APOS_STRING = {\n className: 'string',\n variants: [\n {\n begin: /'/,\n end: /'/\n },\n {\n begin: /@'/,\n end: /^'@/\n }\n ]\n };\n\n const PS_HELPTAGS = {\n className: \"doctag\",\n variants: [\n /* no paramater help tags */\n { begin: /\\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ },\n /* one parameter help tags */\n { begin: /\\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\\s+\\S+/ }\n ]\n };\n\n const PS_COMMENT = hljs.inherit(\n hljs.COMMENT(null, null),\n {\n variants: [\n /* single-line comment */\n {\n begin: /#/,\n end: /$/\n },\n /* multi-line comment */\n {\n begin: /<#/,\n end: /#>/\n }\n ],\n contains: [ PS_HELPTAGS ]\n }\n );\n\n const CMDLETS = {\n className: 'built_in',\n variants: [ { begin: '('.concat(VALID_VERBS, ')+(-)[\\\\w\\\\d]+') } ]\n };\n\n const PS_CLASS = {\n className: 'class',\n beginKeywords: 'class enum',\n end: /\\s*[{]/,\n excludeEnd: true,\n relevance: 0,\n contains: [ hljs.TITLE_MODE ]\n };\n\n const PS_FUNCTION = {\n className: 'function',\n begin: /function\\s+/,\n end: /\\s*\\{|$/,\n excludeEnd: true,\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n begin: \"function\",\n relevance: 0,\n className: \"keyword\"\n },\n {\n className: \"title\",\n begin: TITLE_NAME_RE,\n relevance: 0\n },\n {\n begin: /\\(/,\n end: /\\)/,\n className: \"params\",\n relevance: 0,\n contains: [ VAR ]\n }\n // CMDLETS\n ]\n };\n\n // Using statment, plus type, plus assembly name.\n const PS_USING = {\n begin: /using\\s/,\n end: /$/,\n returnBegin: true,\n contains: [\n QUOTE_STRING,\n APOS_STRING,\n {\n className: 'keyword',\n begin: /(using|assembly|command|module|namespace|type)/\n }\n ]\n };\n\n // Comperison operators & function named parameters.\n const PS_ARGUMENTS = { variants: [\n // PS literals are pretty verbose so it's a good idea to accent them a bit.\n {\n className: 'operator',\n begin: '('.concat(COMPARISON_OPERATORS, ')\\\\b')\n },\n {\n className: 'literal',\n begin: /(-){1,2}[\\w\\d-]+/,\n relevance: 0\n }\n ] };\n\n const HASH_SIGNS = {\n className: 'selector-tag',\n begin: /@\\B/,\n relevance: 0\n };\n\n // It's a very general rule so I'll narrow it a bit with some strict boundaries\n // to avoid any possible false-positive collisions!\n const PS_METHODS = {\n className: 'function',\n begin: /\\[.*\\]\\s*[\\w]+[ ]??\\(/,\n end: /$/,\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n className: 'keyword',\n begin: '('.concat(\n KEYWORDS.keyword.toString().replace(/\\s/g, '|'\n ), ')\\\\b'),\n endsParent: true,\n relevance: 0\n },\n hljs.inherit(hljs.TITLE_MODE, { endsParent: true })\n ]\n };\n\n const GENTLEMANS_SET = [\n // STATIC_MEMBER,\n PS_METHODS,\n PS_COMMENT,\n BACKTICK_ESCAPE,\n hljs.NUMBER_MODE,\n QUOTE_STRING,\n APOS_STRING,\n // PS_NEW_OBJECT_TYPE,\n CMDLETS,\n VAR,\n LITERAL,\n HASH_SIGNS\n ];\n\n const PS_TYPE = {\n begin: /\\[/,\n end: /\\]/,\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0,\n contains: [].concat(\n 'self',\n GENTLEMANS_SET,\n {\n begin: \"(\" + TYPES.join(\"|\") + \")\",\n className: \"built_in\",\n relevance: 0\n },\n {\n className: 'type',\n begin: /[\\.\\w\\d]+/,\n relevance: 0\n }\n )\n };\n\n PS_METHODS.contains.unshift(PS_TYPE);\n\n return {\n name: 'PowerShell',\n aliases: [\n \"pwsh\",\n \"ps\",\n \"ps1\"\n ],\n case_insensitive: true,\n keywords: KEYWORDS,\n contains: GENTLEMANS_SET.concat(\n PS_CLASS,\n PS_FUNCTION,\n PS_USING,\n PS_ARGUMENTS,\n PS_TYPE\n )\n };\n}\n\nmodule.exports = powershell;\n"],"names":["module","exports","hljs","KEYWORDS","$pattern","keyword","built_in","BACKTICK_ESCAPE","begin","relevance","VAR","className","variants","QUOTE_STRING","end","contains","APOS_STRING","PS_COMMENT","inherit","COMMENT","CMDLETS","concat","PS_CLASS","beginKeywords","excludeEnd","TITLE_MODE","PS_FUNCTION","returnBegin","PS_USING","PS_ARGUMENTS","PS_METHODS","toString","replace","endsParent","GENTLEMANS_SET","NUMBER_MODE","PS_TYPE","excludeBegin","join","unshift","name","aliases","case_insensitive","keywords"],"sourceRoot":""} |