diff --git a/build/npm/update-all-grammars.js b/build/npm/update-all-grammars.js index 6d6ccc21982..d05a182f31c 100644 --- a/build/npm/update-all-grammars.js +++ b/build/npm/update-all-grammars.js @@ -44,7 +44,7 @@ const extensions = [ 'objective-c', 'perl', 'php', - // 'powershell', grammar not ready yet, @daviwil will ping when ready + 'powershell', 'pug', 'python', 'r', diff --git a/extensions/powershell/OSSREADME.json b/extensions/powershell/OSSREADME.json index a456107d650..b6eb8cf04d2 100644 --- a/extensions/powershell/OSSREADME.json +++ b/extensions/powershell/OSSREADME.json @@ -1,7 +1,7 @@ // ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS: [{ - "name": "SublimeText/PowerShell", + "name": "PowerShell/EditorSyntax", "version": "0.0.0", "license": "MIT", - "repositoryURL": "https://github.com/SublimeText/PowerShell" + "repositoryURL": "https://github.com/powershell/editorsyntax" }] diff --git a/extensions/powershell/package.json b/extensions/powershell/package.json index 83d51ea3137..c53e476238b 100644 --- a/extensions/powershell/package.json +++ b/extensions/powershell/package.json @@ -13,7 +13,7 @@ "grammars": [{ "language": "powershell", "scopeName": "source.powershell", - "path": "./syntaxes/PowershellSyntax.tmLanguage" + "path": "./syntaxes/powershell.tmLanguage.json" }], "snippets": [{ "language": "powershell", @@ -21,6 +21,6 @@ }] }, "scripts": { - "update-grammar": "node ../../build/npm/update-grammar.js SublimeText/PowerShell Support/PowershellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json" + "update-grammar": "node ../../build/npm/update-grammar.js PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json" } } \ No newline at end of file diff --git a/extensions/powershell/syntaxes/PowershellSyntax.tmLanguage b/extensions/powershell/syntaxes/PowershellSyntax.tmLanguage deleted file mode 100644 index 1ad8b5e38b5..00000000000 --- a/extensions/powershell/syntaxes/PowershellSyntax.tmLanguage +++ /dev/null @@ -1,1194 +0,0 @@ - - - - - fileTypes - - ps1 - psm1 - psd1 - - name - PowerShell - patterns - - - begin - <# - beginCaptures - - 0 - - name - punctuation.start.definition.comment.block.powershell - - - end - #> - endCaptures - - 0 - - name - punctuation.end.definition.comment.block.powershell - - - name - comment.block.powershell - patterns - - - include - #commentEmbeddedDocs - - - - - begin - (?<![`\\-])# - end - $ - name - comment.line.number-sign.powershell - patterns - - - include - #commentEmbeddedDocs - - - - - match - [2-6]>&1|>>|>|<<|<|>|>\||[1-6]>|[1-6]>> - name - keyword.operator.redirection.powershell - - - include - #commands - - - include - #variable - - - include - #interpolatedStringContent - - - include - #function - - - include - #attribute - - - include - #type - - - begin - (?<!(?<!`)")" - end - "(?!") - name - string.quoted.double.powershell - patterns - - - include - #variableNoProperty - - - include - #doubleQuotedStringEscapes - - - include - #interpolation - - - match - `\s*$ - name - keyword.other.powershell - - - - - comment - Needed to parse stuff correctly in 'argument mode'. (See about_parsing.) - include - #doubleQuotedStringEscapes - - - begin - (?<!')' - end - '(?!') - name - string.quoted.single.powershell - patterns - - - match - '' - name - constant.character.escape.powershell - - - - - begin - \@"(?=$) - end - ^"@ - name - string.quoted.double.heredoc.powershell - patterns - - - include - #variableNoProperty - - - include - #doubleQuotedStringEscapes - - - include - #interpolation - - - - - begin - \@'(?=$) - end - ^'@ - name - string.quoted.single.heredoc.powershell - patterns - - - match - '' - name - constant.character.escape.powershell - - - - - include - #numericConstant - - - begin - @\( - captures - - 0 - - name - keyword.other.powershell - - - end - \) - name - meta.group.array-expression.powershell - patterns - - - include - $self - - - - - begin - \$\( - captures - - 0 - - name - keyword.other.powershell - - - comment - TODO: move to repo; make recursive. - end - \) - name - meta.group.complex.subexpression.powershell - patterns - - - include - $self - - - - - match - (?<!\w)-([ci]?[lg][te]|eq|ne) - name - keyword.operator.logical.powershell - - - match - (\b(([A-Za-z0-9\-_\.]+)\.(?i:exe|com|cmd|bat))\b) - name - support.function.powershell - - - match - (?<!\w)((?i:begin|break|catch|continue|data|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!-object)|while)|%|\?)(?!\w) - name - keyword.control.powershell - - - captures - - 1 - - name - storage.type.powershell - - 2 - - name - entity.name.function - - - comment - capture should be entity.name.type, but it doesn't provide a good color in the default schema. - match - (?<!\w)((?i:class)|%|\?)(?:\s)+((?:\p{L}|\d|_|-|)+)\b - - - match - (?<!\w)-(?i:is(?:not)?|as)\b - name - keyword.operator.comparison.powershell - - - match - (?<!\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\p{L}) - name - keyword.operator.comparison.powershell - - - match - (?<!\w)-(?i:join|split)(?!\p{L})|! - name - keyword.operator.unary.powershell - - - match - (?<!\w)-(?i:and|or|not|xor)(?!\p{L})|! - name - keyword.operator.logical.powershell - - - match - (?<!\w)-(?i:band|bor|bnot|bxor)(?!\p{L}) - name - keyword.operator.bitwise.powershell - - - match - (?<!\w)-(?i:f)(?!\p{L}) - name - keyword.operator.string-format.powershell - - - match - [+%*/-]?=|[+/*%-] - name - keyword.operator.assignment.powershell - - - match - \|{2}|&{2}|; - name - keyword.other.statement-separator.powershell - - - match - &|(?<!\w)\.(?= )|`|,|\| - name - keyword.operator.other.powershell - - - comment - This is very imprecise, is there a syntax for 'must come after...' - match - (?<!\s|^)\.\.(?=\d|\(|\$) - name - keyword.operator.range.powershell - - - repository - - attribute - - begin - \[(\p{L}|\.|``\d+)+(?=\() - beginCaptures - - 0 - - name - entity.name.tag - - 1 - - name - entity.name.tag - - - end - \] - endCaptures - - 0 - - name - entity.name.tag - - - patterns - - - begin - \( - end - \) - name - entity.other.attribute-name - patterns - - - captures - - 0 - - name - entity.other.attribute.parameter.powershell - - 1 - - name - constant.language.powershell - - 2 - - name - variable.other.powershell - - - comment - really we should match the known attributes first - match - (\w+)\s*=?([^"']*?|'[^']*?'|"[^"]*?")?(?=,|\)) - name - entity.other.attribute-name.powershell - - - include - #variable - - - - - - commands - - patterns - - - comment - Verb-Noun pattern: - match - (?:(\p{L}|\d|_|-|\\|\:)*\\)?\b(?i:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)\-.+?(?:\.(?i:exe|cmd|bat|ps1))?\b - name - support.function.powershell - - - comment - Builtin cmdlets with reserved verbs - match - (?<!\w)(?i:foreach-object)(?!\w) - name - support.function.powershell - - - comment - Builtin cmdlets with reserved verbs - match - (?<!\w)(?i:where-object)(?!\w) - name - support.function.powershell - - - - commentEmbeddedDocs - - patterns - - - captures - - 1 - - name - constant.string.documentation.powershell - - 2 - - name - keyword.operator.documentation.powershell - - - match - (?i:\s*(\.)(SYNOPSIS|DESCRIPTION|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|FUNCTIONALITY)) - name - comment.documentation.embedded.powershell - - - captures - - 1 - - name - constant.string.documentation.powershell - - 2 - - name - keyword.operator.documentation.powershell - - 3 - - name - keyword.operator.documentation.powershell - - - match - (?i:\s*(\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP)\s+([a-z0-9-_]+)) - name - comment.documentation.embedded.powershell - - - captures - - 1 - - name - constant.string.documentation.powershell - - 2 - - name - keyword.operator.documentation.powershell - - 3 - - name - string.quoted.double.heredoc.powershell - - - match - (?i:requires\s+-(Version\s+\d(.\d+)?|Assembly\s+(.*)|Module\s+(.*)|PsSnapIn\s+(.*)|ShellId\s+(.*))) - name - comment.documentation.embedded.powershell - - - - doubleQuotedStringEscapes - - patterns - - - match - `[0abnfrvt"'$`] - name - constant.character.escape.powershell - - - match - "" - name - constant.character.escape.powershell - - - - function - - begin - (?<!\S)(?i)(function|filter|configuration|workflow)\s+(?:(global|local|script|private):)?((?:\p{L}|\d|_|-|\.)+) - beginCaptures - - 0 - - name - meta.function - - 1 - - name - storage.type - - 2 - - name - storage.modifier.scope.powershell - - 3 - - name - entity.name.function.powershell - - - end - \{|\( - - interpolatedStringContent - - begin - \( - beginCaptures - - 0 - - name - keyword.other.powershell - - - contentName - interpolated.simple.source.powershell - end - \) - endCaptures - - 0 - - name - keyword.other.powershell - - - patterns - - - include - $self - - - include - #interpolation - - - include - #interpolatedStringContent - - - - interpolation - - begin - (\$)\( - beginCaptures - - 0 - - name - keyword.other.powershell - - - contentName - interpolated.complex.source.powershell - end - \) - endCaptures - - 0 - - name - keyword.other.powershell - - - patterns - - - include - $self - - - include - #interpolation - - - include - #interpolatedStringContent - - - - numericConstant - - patterns - - - captures - - 1 - - name - keyword.operator.math.powershell - - 2 - - name - support.constant.powershell - - 3 - - name - keyword.other.powershell - - - match - (?<!\w)(?i:(0x)([a-f0-9]+)((?i:L)?(?i:[kmgtp]b)?))(?!\w) - name - constant.numeric.hexadecimal.powershell - - - captures - - 1 - - name - support.constant.powershell - - 2 - - name - keyword.operator.math.powershell - - 3 - - name - support.constant.powershell - - 4 - - name - keyword.other.powershell - - 5 - - name - keyword.other.powershell - - - match - (?<!\w)(?i:(\d*\.?\d+)(?:((?i:E)[+-]?)(\d+))?((?i:[DL])?)((?i:[kmgtp]b)?))(?!\w) - name - constant.numeric.scientific.powershell - - - - scriptblock - - begin - \{ - end - \} - name - meta.scriptblock.powershell - patterns - - - include - $self - - - - type - - begin - \[ - beginCaptures - - 0 - - name - entity.other.attribute-name - - - comment - name should be entity.name.type but default schema doesn't have a good color for it - end - \] - endCaptures - - 0 - - name - entity.other.attribute-name - - - patterns - - - match - (\p{L}|\.|``\d+)+? - name - entity.other.attribute-name - - - include - $self - - - - variable - - patterns - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - constant.language.powershell - - - comment - These are special constants. - match - (\$)(?i:(False|Null|True))\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.constant.variable.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - These are the other built-in constants. - match - (\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\.(?:\p{L}|\d|_)+)*\b)?\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.constant.automatic.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - Automatic variables are not constants, but they are read-only. In monokai (default) color schema support.variable doesn't have color, so we use constant. - match - (\$)(?i:(\$|\^|\?|_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This))((?:\.(?:\p{L}|\d|_)+)*\b)?\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - variable.language.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - Style preference variables as language variables so that they stand out. - match - (\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))((?:\.(?:\p{L}|\d|_)+)*\b)?\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - storage.modifier.scope.powershell - - 3 - - name - variable.other.normal.powershell - - 4 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$)(global|local|private|script|using|workflow):((?:\p{L}|\d|_)+))((?:\.(?:\p{L}|\d|_)+)*\b)? - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - storage.modifier.scope.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - keyword.other.powershell - - 5 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\}))((?:\.(?:\p{L}|\d|_)+)*\b)? - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.variable.drive.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$)((?:\p{L}|\d|_)+:)?((?:\p{L}|\d|_)+))((?:\.(?:\p{L}|\d|_)+)*\b)? - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.variable.drive.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - keyword.other.powershell - - 5 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$\{)((?:\p{L}|\d|_)+:)?([^}]*[^}`])(\}))((?:\.(?:\p{L}|\d|_)+)*\b)? - - - - variableNoProperty - - patterns - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - constant.language.powershell - - - comment - These are special constants. - match - (\$)(?i:(False|Null|True))\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.constant.variable.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - These are the other built-in constants. - match - (\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.variable.automatic.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - Automatic variables are not constants, but they are read-only... - match - (\$)(?i:(\$|\^|\?|_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This))\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - variable.language.powershell - - 3 - - name - entity.name.function.invocation.powershell - - - comment - Style preference variables as language variables so that they stand out. - match - (\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))\b - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - storage.modifier.scope.powershell - - 3 - - name - variable.other.normal.powershell - - 4 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$)(global|local|private|script|using|workflow):((?:\p{L}|\d|_)+)) - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - storage.modifier.scope.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - keyword.other.powershell - - 5 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\})) - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.variable.drive.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$)((?:\p{L}|\d|_)+:)?((?:\p{L}|\d|_)+)) - - - captures - - 1 - - name - keyword.other.powershell - - 2 - - name - support.variable.drive.powershell - - 3 - - name - variable.other.readwrite.powershell - - 4 - - name - keyword.other.powershell - - 5 - - name - entity.name.function.invocation.powershell - - - match - (?i:(\$\{)((?:\p{L}|\d|_)+:)?([^}]*[^}`])(\})) - - - - - scopeName - source.powershell - uuid - f8f5ffb0-503e-11df-9879-0800200c9a66 - - diff --git a/extensions/powershell/syntaxes/powershell.tmLanguage.json b/extensions/powershell/syntaxes/powershell.tmLanguage.json new file mode 100644 index 00000000000..d6be0473f78 --- /dev/null +++ b/extensions/powershell/syntaxes/powershell.tmLanguage.json @@ -0,0 +1,1070 @@ +{ + "information_for_contributors": [ + "This file has been converted from https://github.com/PowerShell/EditorSyntax/blob/master/PowerShellSyntax.tmLanguage", + "If you want to provide a fix or improvement, please create a pull request against the original repository.", + "Once accepted there, we are happy to receive an update request." + ], + "version": "https://github.com/PowerShell/EditorSyntax/commit/d605150f48952ba4bd28d7b389e97adc1a5d9b76", + "fileTypes": [ + "ps1", + "psm1", + "psd1" + ], + "name": "PowerShell", + "patterns": [ + { + "begin": "(--%)", + "beginCaptures": { + "1": { + "name": "keyword.operator.powershell" + } + }, + "comment": "Stop Parsing", + "end": "$", + "patterns": [ + { + "include": "#lineComment" + }, + { + "match": "(.)", + "name": "support.other.powershell" + } + ] + }, + { + "include": "#illegalBacktick" + }, + { + "include": "#lineComment" + }, + { + "include": "#blockComment" + }, + { + "include": "#stringDoubleQuoted" + }, + { + "include": "#stringSingleQuoted" + }, + { + "include": "#stringDoubleQuotedHeredoc" + }, + { + "include": "#stringSingleQuotedHeredoc" + }, + { + "include": "#switch" + }, + { + "include": "#scriptBlock" + }, + { + "include": "#subExpression" + }, + { + "include": "#arrayDeclaration" + }, + { + "include": "#redirection" + }, + { + "include": "#numericConstant" + }, + { + "include": "#operators" + }, + { + "include": "#type" + }, + { + "include": "#function" + }, + { + "include": "#enum" + }, + { + "include": "#class" + }, + { + "include": "#reservedWords" + }, + { + "include": "#controlWords" + }, + { + "include": "#commands" + }, + { + "include": "#executableFiles" + }, + { + "include": "#illegalVariable" + }, + { + "include": "#variable" + } + ], + "repository": { + "arrayDeclaration": { + "begin": "(\\@?\\()", + "beginCaptures": { + "0": { + "name": "keyword.other.powershell" + } + }, + "end": "(\\))((\\.[\\w\"']+)*)", + "endCaptures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "entity.other.attribute-name.powershell" + } + }, + "name": "meta.array.powershell", + "patterns": [ + { + "include": "$self" + } + ] + }, + "blockComment": { + "begin": "(<#)", + "end": "(#>)", + "name": "comment.block.powershell", + "patterns": [ + { + "include": "#commentEmbeddedDocs" + } + ] + }, + "class": { + "begin": "(?&1)", + "name": "keyword.operator.redirection.powershell" + }, + { + "comment": "File redirection", + "match": "(?<=\\s|^)(([1-6\\*]?>{1,2})|(<))", + "name": "keyword.operator.redirection.powershell" + } + ] + }, + "reservedWords": { + "match": "(\\b(?)", + "match": "\\b(?i:(switch))\\b\\s+(?i:(-regex|-wildcard|-exact){0,1})\\s*(?i:(-casesensitive){0,1})\\s*" + } + ] + }, + "type": { + "begin": "\\[", + "beginCaptures": { + "0": { + "name": "keyword.other.powershell" + } + }, + "comment": "Type []", + "end": "(\\])(::[\\w]+)*((\\.[\\w\"']+)*)", + "endCaptures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "meta.method.powershell" + }, + "3": { + "name": "entity.other.attribute-name.powershell" + } + }, + "patterns": [ + { + "begin": "\\(", + "beginCaptures": { + "0": { + "name": "keyword.other.powershell" + } + }, + "comment": "Parenthesis ()", + "end": "\\)", + "endCaptures": { + "0": { + "name": "keyword.other.powershell" + } + }, + "patterns": [ + { + "include": "$self" + }, + { + "comment": "Reserved words within [( )]", + "match": "\\b(?i)(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact|helpmessage)\\b", + "name": "entity.other.attribute-name.powershell" + } + ] + }, + { + "include": "$self" + }, + { + "match": "(.(`){0,2}(\\d){0,2})", + "name": "entity.name.type" + } + ] + }, + "variable": { + "patterns": [ + { + "comment": "Invalid variable name", + "match": "(\\$)(\\w+-\\w+)\\b", + "name": "invalid.illegal.powershell" + }, + { + "captures": { + "1": { + "name": "constant.language.powershell" + }, + "2": { + "name": "constant.language.powershell" + }, + "3": { + "name": "entity.other.attribute-name.powershell" + } + }, + "comment": "Automatic variables - read-only.", + "match": "(\\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\\b((\\.[\\w\"'\\- @#]+)*)" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "storage.modifier.scope.powershell" + }, + "3": { + "name": "variable.other.readwrite.powershell" + }, + "4": { + "name": "variable.other.readwrite.powershell" + }, + "5": { + "name": "entity.other.attribute-name.powershell" + } + }, + "comment": "$var, $local:var", + "match": "(\\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\\w+)(:\\w+)?((\\.[\\w\"'\\- @#]+)*)" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "keyword.other.powershell" + }, + "3": { + "name": "storage.modifier.scope.powershell" + }, + "4": { + "name": "variable.other.readwrite.powershell" + }, + "5": { + "name": "keyword.other.powershell" + }, + "6": { + "name": "entity.other.attribute-name.powershell" + } + }, + "comment": "${var}, ${script:var}", + "match": "(\\$)(\\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\\})((\\.[\\w\"'\\- @#]+)*)" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "variable.other.readwrite.powershell" + } + }, + "comment": "Splatting", + "match": "(@)(\\w+)" + } + ] + }, + "variableWithoutPropertyHighlighting": { + "patterns": [ + { + "comment": "Invalid variable name", + "match": "(\\$)(\\w+-\\w+)\\b", + "name": "invalid.illegal.powershell" + }, + { + "captures": { + "1": { + "name": "constant.language.powershell" + }, + "2": { + "name": "constant.language.powershell" + } + }, + "comment": "Automatic variables - read-only.", + "match": "(\\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\\b" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "storage.modifier.scope.powershell" + }, + "3": { + "name": "variable.other.readwrite.powershell" + }, + "4": { + "name": "variable.other.readwrite.powershell" + } + }, + "comment": "$var, $local:var", + "match": "(\\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\\w+)(:\\w+)?" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "keyword.other.powershell" + }, + "3": { + "name": "storage.modifier.scope.powershell" + }, + "4": { + "name": "variable.other.readwrite.powershell" + }, + "5": { + "name": "keyword.other.powershell" + } + }, + "comment": "${var}, ${script:var}", + "match": "(\\$)(\\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\\})" + }, + { + "captures": { + "1": { + "name": "keyword.other.powershell" + }, + "2": { + "name": "variable.other.readwrite.powershell" + } + }, + "comment": "Splatting", + "match": "(@)(\\w+)" + } + ] + } + }, + "scopeName": "source.powershell", + "uuid": "f8f5ffb0-503e-11df-9879-0800200c9a66" +} \ No newline at end of file diff --git a/extensions/powershell/test/colorize-results/test_ps1.json b/extensions/powershell/test/colorize-results/test_ps1.json index bce680fee40..d381e13b11d 100644 --- a/extensions/powershell/test/colorize-results/test_ps1.json +++ b/extensions/powershell/test/colorize-results/test_ps1.json @@ -44,7 +44,7 @@ } }, { - "c": "() {", + "c": "() ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -54,9 +54,20 @@ "hc_black": "default: #FFFFFF" } }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -67,7 +78,7 @@ }, { "c": "try", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -77,8 +88,19 @@ } }, { - "c": " {", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -89,7 +111,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -100,7 +122,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -111,7 +133,7 @@ }, { "c": "identity", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -122,7 +144,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -133,7 +155,7 @@ }, { "c": "=", - "t": "source.powershell keyword.operator.assignment.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.operator.assignment.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -144,7 +166,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -154,19 +176,41 @@ } }, { - "c": "[Security.Principal.WindowsIdentity]", - "t": "source.powershell entity.other.attribute-name", + "c": "[", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" + } + }, + { + "c": "Security.Principal.WindowsIdentity", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell entity.name.type", + "r": { + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0" + } + }, + { + "c": "]", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", + "r": { + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": "::GetCurrent", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.method.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -177,7 +221,7 @@ }, { "c": "()", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -188,7 +232,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -199,7 +243,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -210,7 +254,7 @@ }, { "c": "principal", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -221,7 +265,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -232,7 +276,7 @@ }, { "c": "=", - "t": "source.powershell keyword.operator.assignment.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.operator.assignment.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -243,7 +287,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -254,7 +298,7 @@ }, { "c": "New-Object", - "t": "source.powershell support.function.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -264,8 +308,8 @@ } }, { - "c": " Security.Principal.WindowsPrincipal ", - "t": "source.powershell", + "c": " Security.Principal.WindowsPrincipal", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -275,19 +319,19 @@ } }, { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", + "c": " -ArgumentList", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell variable.parameter.powershell", "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "variable: #9CDCFE" } }, { - "c": "ArgumentList ", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -298,7 +342,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -309,7 +353,7 @@ }, { "c": "identity", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.command.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -320,7 +364,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -331,7 +375,7 @@ }, { "c": "return", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -342,7 +386,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -353,7 +397,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -364,7 +408,7 @@ }, { "c": "principal", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -375,18 +419,18 @@ }, { "c": ".IsInRole", - "t": "source.powershell entity.name.function.invocation.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell entity.other.attribute-name.powershell", "r": { - "dark_plus": "entity.name.function: #DCDCAA", - "light_plus": "entity.name.function: #795E26", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "entity.name.function: #DCDCAA" + "dark_plus": "entity.other.attribute-name: #9CDCFE", + "light_plus": "entity.other.attribute-name: #FF0000", + "dark_vs": "entity.other.attribute-name: #9CDCFE", + "light_vs": "entity.other.attribute-name: #FF0000", + "hc_black": "entity.other.attribute-name: #9CDCFE" } }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -397,7 +441,7 @@ }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -407,19 +451,52 @@ } }, { - "c": "[Security.Principal.WindowsBuiltInRole]", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", + "c": "[", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { - "c": "::Administrator ", - "t": "source.powershell interpolated.simple.source.powershell", + "c": "Security.Principal.WindowsBuiltInRole", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell entity.name.type", + "r": { + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0" + } + }, + { + "c": "]", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", + "r": { + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" + } + }, + { + "c": "::Administrator", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell meta.method.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": " ", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -430,7 +507,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -440,8 +517,19 @@ } }, { - "c": " } ", - "t": "source.powershell", + "c": " }", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": " ", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -452,7 +540,7 @@ }, { "c": "catch", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -462,8 +550,19 @@ } }, { - "c": " {", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -474,7 +573,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -485,7 +584,7 @@ }, { "c": "throw", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -496,7 +595,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -507,7 +606,7 @@ }, { "c": "\"Failed to determine if the current user has elevated privileges. The error was: '{0}'.\"", - "t": "source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -518,7 +617,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -529,7 +628,7 @@ }, { "c": "-f", - "t": "source.powershell keyword.operator.string-format.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.operator.format.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -540,7 +639,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -550,30 +649,19 @@ } }, { - "c": "$", - "t": "source.powershell keyword.other.powershell", + "c": "$_", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell constant.language.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, - { - "c": "_", - "t": "source.powershell support.constant.automatic.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "dark_plus": "constant.language: #569CD6", + "light_plus": "constant.language: #0000FF", + "dark_vs": "constant.language: #569CD6", + "light_vs": "constant.language: #0000FF", + "hc_black": "constant.language: #569CD6" } }, { "c": " }", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -584,7 +672,7 @@ }, { "c": "}", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -639,7 +727,7 @@ }, { "c": "{", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -650,7 +738,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -661,18 +749,18 @@ }, { "c": "param", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { - "dark_plus": "keyword.control: #C586C0", - "light_plus": "keyword.control: #AF00DB", - "dark_vs": "keyword.control: #569CD6", - "light_vs": "keyword.control: #0000FF", - "hc_black": "keyword.control: #C586C0" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -683,7 +771,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -694,7 +782,7 @@ }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -704,107 +792,96 @@ } }, { - "c": "[Paramete", - "t": "source.powershell interpolated.simple.source.powershell entity.name.tag", + "c": "[", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.name.tag: #569CD6", - "light_plus": "entity.name.tag: #800000", - "dark_vs": "entity.name.tag: #569CD6", - "light_vs": "entity.name.tag: #800000", - "hc_black": "entity.name.tag: #569CD6" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { - "c": "r", - "t": "source.powershell interpolated.simple.source.powershell entity.name.tag entity.name.tag", + "c": "Parameter", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell entity.name.type", "r": { - "dark_plus": "entity.name.tag: #569CD6", - "light_plus": "entity.name.tag: #800000", - "dark_vs": "entity.name.tag: #569CD6", - "light_vs": "entity.name.tag: #800000", - "hc_black": "entity.name.tag: #569CD6" + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0" } }, { "c": "(", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": "Mandatory", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name entity.other.attribute-name.powershell entity.other.attribute.parameter.powershell constant.language.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell entity.other.attribute-name.powershell", "r": { - "dark_plus": "constant.language: #569CD6", - "light_plus": "constant.language: #0000FF", - "dark_vs": "constant.language: #569CD6", - "light_vs": "constant.language: #0000FF", - "hc_black": "constant.language: #569CD6" + "dark_plus": "entity.other.attribute-name: #9CDCFE", + "light_plus": "entity.other.attribute-name: #FF0000", + "dark_vs": "entity.other.attribute-name: #9CDCFE", + "light_vs": "entity.other.attribute-name: #FF0000", + "hc_black": "entity.other.attribute-name: #9CDCFE" } }, { "c": "=", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name entity.other.attribute-name.powershell entity.other.attribute.parameter.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.operator.assignment.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword.operator: #D4D4D4", + "light_plus": "keyword.operator: #000000", + "dark_vs": "keyword.operator: #D4D4D4", + "light_vs": "keyword.operator: #000000", + "hc_black": "keyword.operator: #D4D4D4" } }, { "c": "1", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name entity.other.attribute-name.powershell entity.other.attribute.parameter.powershell variable.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell constant.numeric.integer.powershell", "r": { - "dark_plus": "variable: #9CDCFE", - "light_plus": "variable: #001080", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "variable: #9CDCFE" + "dark_plus": "constant.numeric: #B5CEA8", + "light_plus": "constant.numeric: #09885A", + "dark_vs": "constant.numeric: #B5CEA8", + "light_vs": "constant.numeric: #09885A", + "hc_black": "constant.numeric: #B5CEA8" } }, { - "c": ")", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", + "c": ")][", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { - "c": "]", - "t": "source.powershell interpolated.simple.source.powershell entity.name.tag", + "c": "string", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell entity.name.type", "r": { - "dark_plus": "entity.name.tag: #569CD6", - "light_plus": "entity.name.tag: #800000", - "dark_vs": "entity.name.tag: #569CD6", - "light_vs": "entity.name.tag: #800000", - "hc_black": "entity.name.tag: #569CD6" + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0" } }, { - "c": "[string]", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", - "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" - } - }, - { - "c": "$", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "c": "]$", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -815,7 +892,7 @@ }, { "c": "Command", - "t": "source.powershell interpolated.simple.source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -826,7 +903,7 @@ }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -837,7 +914,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -848,7 +925,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -859,7 +936,7 @@ }, { "c": "foreach", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -870,7 +947,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -880,30 +957,19 @@ } }, { - "c": "$", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "c": "$_", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell constant.language.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, - { - "c": "_", - "t": "source.powershell interpolated.simple.source.powershell support.constant.automatic.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "dark_plus": "constant.language: #569CD6", + "light_plus": "constant.language: #0000FF", + "dark_vs": "constant.language: #569CD6", + "light_vs": "constant.language: #0000FF", + "hc_black": "constant.language: #569CD6" } }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -914,7 +980,7 @@ }, { "c": "in", - "t": "source.powershell interpolated.simple.source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -925,7 +991,7 @@ }, { "c": " cmd ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -936,7 +1002,7 @@ }, { "c": "/", - "t": "source.powershell interpolated.simple.source.powershell keyword.operator.assignment.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.operator.multiplicative.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -947,7 +1013,7 @@ }, { "c": "c ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -958,7 +1024,7 @@ }, { "c": "\"", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -969,7 +1035,7 @@ }, { "c": "$", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell string.quoted.double.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -980,7 +1046,7 @@ }, { "c": "Command", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell string.quoted.double.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -991,7 +1057,7 @@ }, { "c": " 2>&1 & set\"", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1002,7 +1068,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1012,8 +1078,19 @@ } }, { - "c": " {", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1024,7 +1101,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1035,7 +1112,7 @@ }, { "c": "if", - "t": "source.powershell keyword.control.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.control.powershell", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -1046,7 +1123,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1057,7 +1134,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1067,30 +1144,19 @@ } }, { - "c": "$", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "c": "$_", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell constant.language.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, - { - "c": "_", - "t": "source.powershell interpolated.simple.source.powershell support.constant.automatic.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "dark_plus": "constant.language: #569CD6", + "light_plus": "constant.language: #0000FF", + "dark_vs": "constant.language: #569CD6", + "light_vs": "constant.language: #0000FF", + "hc_black": "constant.language: #569CD6" } }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1101,7 +1167,7 @@ }, { "c": "-match", - "t": "source.powershell interpolated.simple.source.powershell keyword.operator.comparison.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.operator.comparison.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -1112,7 +1178,7 @@ }, { "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1123,7 +1189,7 @@ }, { "c": "'^([^=]+)=(.*)'", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.single.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell string.quoted.single.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1134,7 +1200,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1144,8 +1210,19 @@ } }, { - "c": " {", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1156,7 +1233,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1166,19 +1243,41 @@ } }, { - "c": "[System.Environment]", - "t": "source.powershell entity.other.attribute-name", + "c": "[", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" + } + }, + { + "c": "System.Environment", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell entity.name.type", + "r": { + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0" + } + }, + { + "c": "]", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell keyword.other.powershell", + "r": { + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": "::SetEnvironmentVariable", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.method.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1189,7 +1288,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1199,41 +1298,30 @@ } }, { - "c": "$", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "c": "$matches", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell constant.language.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, - { - "c": "matches", - "t": "source.powershell interpolated.simple.source.powershell support.constant.automatic.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "dark_plus": "constant.language: #569CD6", + "light_plus": "constant.language: #0000FF", + "dark_vs": "constant.language: #569CD6", + "light_vs": "constant.language: #0000FF", + "hc_black": "constant.language: #569CD6" } }, { "c": "[", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": "1", - "t": "source.powershell interpolated.simple.source.powershell constant.numeric.scientific.powershell support.constant.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell constant.numeric.integer.powershell", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #09885A", @@ -1244,40 +1332,7 @@ }, { "c": "]", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", - "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" - } - }, - { - "c": ",", - "t": "source.powershell interpolated.simple.source.powershell keyword.operator.other.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" - } - }, - { - "c": "$", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1287,8 +1342,8 @@ } }, { - "c": "matches", - "t": "source.powershell interpolated.simple.source.powershell support.constant.automatic.powershell", + "c": ", ", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1298,19 +1353,30 @@ } }, { - "c": "[", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", + "c": "$matches", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell constant.language.powershell", "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" + "dark_plus": "constant.language: #569CD6", + "light_plus": "constant.language: #0000FF", + "dark_vs": "constant.language: #569CD6", + "light_vs": "constant.language: #0000FF", + "hc_black": "constant.language: #569CD6" + } + }, + { + "c": "[", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", + "r": { + "dark_plus": "keyword: #569CD6", + "light_plus": "keyword: #0000FF", + "dark_vs": "keyword: #569CD6", + "light_vs": "keyword: #0000FF", + "hc_black": "keyword: #569CD6" } }, { "c": "2", - "t": "source.powershell interpolated.simple.source.powershell constant.numeric.scientific.powershell support.constant.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell constant.numeric.integer.powershell", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #09885A", @@ -1320,19 +1386,8 @@ } }, { - "c": "]", - "t": "source.powershell interpolated.simple.source.powershell entity.other.attribute-name", - "r": { - "dark_plus": "entity.other.attribute-name: #9CDCFE", - "light_plus": "entity.other.attribute-name: #FF0000", - "dark_vs": "entity.other.attribute-name: #9CDCFE", - "light_vs": "entity.other.attribute-name: #FF0000", - "hc_black": "entity.other.attribute-name: #9CDCFE" - } - }, - { - "c": ")", - "t": "source.powershell keyword.other.powershell", + "c": "])", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1343,7 +1398,7 @@ }, { "c": " }", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1354,7 +1409,7 @@ }, { "c": " }", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1365,7 +1420,7 @@ }, { "c": "}", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1376,7 +1431,7 @@ }, { "c": "Write-Host", - "t": "source.powershell support.function.powershell", + "t": "source.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -1386,30 +1441,19 @@ } }, { - "c": " ", - "t": "source.powershell", + "c": " -Object", + "t": "source.powershell meta.command.powershell variable.parameter.powershell", "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", "dark_vs": "default: #D4D4D4", "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "hc_black": "variable: #9CDCFE" } }, { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "Object ", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1420,7 +1464,7 @@ }, { "c": "'Initializing Azure PowerShell environment...'", - "t": "source.powershell string.quoted.single.powershell", + "t": "source.powershell meta.command.powershell string.quoted.single.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1431,13 +1475,13 @@ }, { "c": ";", - "t": "source.powershell keyword.other.statement-separator.powershell", + "t": "source.powershell meta.command.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" } }, { @@ -1475,7 +1519,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1486,18 +1530,18 @@ }, { "c": "!", - "t": "source.powershell interpolated.simple.source.powershell keyword.operator.unary.powershell", + "t": "source.powershell meta.array.powershell", "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" } }, { "c": "(", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1508,7 +1552,7 @@ }, { "c": "Test-IsAdmin", - "t": "source.powershell interpolated.simple.source.powershell interpolated.simple.source.powershell support.function.powershell", + "t": "source.powershell meta.array.powershell meta.array.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -1519,7 +1563,7 @@ }, { "c": ")", - "t": "source.powershell interpolated.simple.source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1530,7 +1574,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1541,7 +1585,7 @@ }, { "c": "{", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1552,7 +1596,7 @@ }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1563,7 +1607,7 @@ }, { "c": "Write-Host", - "t": "source.powershell support.function.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -1573,30 +1617,19 @@ } }, { - "c": " ", - "t": "source.powershell", + "c": " -Object", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell variable.parameter.powershell", "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", "dark_vs": "default: #D4D4D4", "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "hc_black": "variable: #9CDCFE" } }, { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "Object ", - "t": "source.powershell", + "c": " ", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1607,7 +1640,7 @@ }, { "c": "'Please launch command under administrator account. It is needed for environment setting up and unit test.'", - "t": "source.powershell string.quoted.single.powershell", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell string.quoted.single.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1617,8 +1650,19 @@ } }, { - "c": " ", - "t": "source.powershell", + "c": " -ForegroundColor", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell variable.parameter.powershell", + "r": { + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "variable: #9CDCFE" + } + }, + { + "c": " Red;", + "t": "source.powershell meta.scriptblock.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1627,42 +1671,9 @@ "hc_black": "default: #FFFFFF" } }, - { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "ForegroundColor Red", - "t": "source.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" - } - }, - { - "c": ";", - "t": "source.powershell keyword.other.statement-separator.powershell", - "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, { "c": "}", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1684,13 +1695,13 @@ }, { "c": "env:", - "t": "source.powershell support.variable.drive.powershell", + "t": "source.powershell storage.modifier.scope.powershell", "r": { - "dark_plus": "support.variable: #9CDCFE", - "light_plus": "support.variable: #001080", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "support.variable: #9CDCFE" + "dark_plus": "storage.modifier: #569CD6", + "light_plus": "storage.modifier: #0000FF", + "dark_vs": "storage.modifier: #569CD6", + "light_vs": "storage.modifier: #0000FF", + "hc_black": "storage.modifier: #569CD6" } }, { @@ -1739,7 +1750,7 @@ }, { "c": "Split-Path", - "t": "source.powershell support.function.powershell", + "t": "source.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -1748,53 +1759,20 @@ "hc_black": "support.function: #DCDCAA" } }, + { + "c": " -Parent -Path", + "t": "source.powershell meta.command.powershell variable.parameter.powershell", + "r": { + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "variable: #9CDCFE" + } + }, { "c": " ", - "t": "source.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" - } - }, - { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "Parent ", - "t": "source.powershell", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" - } - }, - { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "Path ", - "t": "source.powershell", + "t": "source.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1805,7 +1783,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.command.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1816,18 +1794,18 @@ }, { "c": "env:", - "t": "source.powershell support.variable.drive.powershell", + "t": "source.powershell meta.command.powershell storage.modifier.scope.powershell", "r": { - "dark_plus": "support.variable: #9CDCFE", - "light_plus": "support.variable: #001080", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "support.variable: #9CDCFE" + "dark_plus": "storage.modifier: #569CD6", + "light_plus": "storage.modifier: #0000FF", + "dark_vs": "storage.modifier: #569CD6", + "light_vs": "storage.modifier: #0000FF", + "hc_black": "storage.modifier: #569CD6" } }, { "c": "AzurePSRoot", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.command.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -1838,13 +1816,13 @@ }, { "c": ";", - "t": "source.powershell keyword.other.statement-separator.powershell", + "t": "source.powershell meta.command.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" } }, { @@ -1871,7 +1849,7 @@ }, { "c": "(", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1882,7 +1860,7 @@ }, { "c": "Test-Path", - "t": "source.powershell interpolated.simple.source.powershell support.function.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell support.function.powershell", "r": { "dark_plus": "support.function: #DCDCAA", "light_plus": "support.function: #795E26", @@ -1892,30 +1870,19 @@ } }, { - "c": " ", - "t": "source.powershell interpolated.simple.source.powershell", + "c": " -Path", + "t": "source.powershell meta.array.powershell meta.command.powershell variable.parameter.powershell", "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", "dark_vs": "default: #D4D4D4", "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF" + "hc_black": "variable: #9CDCFE" } }, { - "c": "-", - "t": "source.powershell interpolated.simple.source.powershell keyword.operator.assignment.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": "Path ", - "t": "source.powershell interpolated.simple.source.powershell", + "c": " ", + "t": "source.powershell meta.array.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1926,7 +1893,7 @@ }, { "c": "\"", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1937,7 +1904,7 @@ }, { "c": "$", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell string.quoted.double.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1948,18 +1915,18 @@ }, { "c": "env:", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell support.variable.drive.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell string.quoted.double.powershell storage.modifier.scope.powershell", "r": { - "dark_plus": "support.variable: #9CDCFE", - "light_plus": "support.variable: #001080", - "dark_vs": "string: #CE9178", - "light_vs": "string: #A31515", - "hc_black": "support.variable: #9CDCFE" + "dark_plus": "storage.modifier: #569CD6", + "light_plus": "storage.modifier: #0000FF", + "dark_vs": "storage.modifier: #569CD6", + "light_vs": "storage.modifier: #0000FF", + "hc_black": "storage.modifier: #569CD6" } }, { "c": "ADXSDKProgramFiles", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell string.quoted.double.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -1970,7 +1937,7 @@ }, { "c": "\\Microsoft Visual Studio 12.0\"", - "t": "source.powershell interpolated.simple.source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.array.powershell meta.command.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -1981,7 +1948,7 @@ }, { "c": ")", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.array.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -1991,7 +1958,7 @@ } }, { - "c": " {", + "c": " ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -2001,9 +1968,20 @@ "hc_black": "default: #FFFFFF" } }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -2014,7 +1992,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -2025,7 +2003,7 @@ }, { "c": "vsVersion", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -2036,7 +2014,7 @@ }, { "c": "=", - "t": "source.powershell keyword.operator.assignment.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.operator.assignment.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -2047,7 +2025,7 @@ }, { "c": "\"12.0\"", - "t": "source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.scriptblock.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -2057,7 +2035,18 @@ } }, { - "c": "} ", + "c": "}", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, + { + "c": " ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -2079,7 +2068,7 @@ } }, { - "c": " {", + "c": " ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -2089,9 +2078,20 @@ "hc_black": "default: #FFFFFF" } }, + { + "c": "{", + "t": "source.powershell meta.scriptblock.powershell", + "r": { + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" + } + }, { "c": " ", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -2102,7 +2102,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -2113,7 +2113,7 @@ }, { "c": "vsVersion", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.scriptblock.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -2124,7 +2124,7 @@ }, { "c": "=", - "t": "source.powershell keyword.operator.assignment.powershell", + "t": "source.powershell meta.scriptblock.powershell keyword.operator.assignment.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -2135,7 +2135,7 @@ }, { "c": "\"11.0\"", - "t": "source.powershell string.quoted.double.powershell", + "t": "source.powershell meta.scriptblock.powershell string.quoted.double.powershell", "r": { "dark_plus": "string: #CE9178", "light_plus": "string: #A31515", @@ -2146,7 +2146,7 @@ }, { "c": "}", - "t": "source.powershell", + "t": "source.powershell meta.scriptblock.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -2234,7 +2234,7 @@ }, { "c": "-f", - "t": "source.powershell keyword.operator.string-format.powershell", + "t": "source.powershell keyword.operator.format.powershell", "r": { "dark_plus": "keyword.operator: #D4D4D4", "light_plus": "keyword.operator: #000000", @@ -2267,13 +2267,13 @@ }, { "c": "env:", - "t": "source.powershell support.variable.drive.powershell", + "t": "source.powershell storage.modifier.scope.powershell", "r": { - "dark_plus": "support.variable: #9CDCFE", - "light_plus": "support.variable: #001080", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "support.variable: #9CDCFE" + "dark_plus": "storage.modifier: #569CD6", + "light_plus": "storage.modifier: #0000FF", + "dark_vs": "storage.modifier: #569CD6", + "light_vs": "storage.modifier: #0000FF", + "hc_black": "storage.modifier: #569CD6" } }, { @@ -2288,18 +2288,7 @@ } }, { - "c": ",", - "t": "source.powershell keyword.operator.other.powershell", - "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" - } - }, - { - "c": " ", + "c": ", ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -2333,28 +2322,6 @@ }, { "c": ";", - "t": "source.powershell keyword.other.statement-separator.powershell", - "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" - } - }, - { - "c": "Invoke-Environment", - "t": "source.powershell support.function.powershell", - "r": { - "dark_plus": "support.function: #DCDCAA", - "light_plus": "support.function: #795E26", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "support.function: #DCDCAA" - } - }, - { - "c": " ", "t": "source.powershell", "r": { "dark_plus": "default: #D4D4D4", @@ -2365,19 +2332,30 @@ } }, { - "c": "-", - "t": "source.powershell keyword.operator.assignment.powershell", + "c": "Invoke-Environment", + "t": "source.powershell meta.command.powershell support.function.powershell", "r": { - "dark_plus": "keyword.operator: #D4D4D4", - "light_plus": "keyword.operator: #000000", - "dark_vs": "keyword.operator: #D4D4D4", - "light_vs": "keyword.operator: #000000", - "hc_black": "keyword.operator: #D4D4D4" + "dark_plus": "support.function: #DCDCAA", + "light_plus": "support.function: #795E26", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "support.function: #DCDCAA" } }, { - "c": "Command ", - "t": "source.powershell", + "c": " -Command", + "t": "source.powershell meta.command.powershell variable.parameter.powershell", + "r": { + "dark_plus": "variable: #9CDCFE", + "light_plus": "variable: #001080", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "variable: #9CDCFE" + } + }, + { + "c": " ", + "t": "source.powershell meta.command.powershell", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -2388,7 +2366,7 @@ }, { "c": "$", - "t": "source.powershell keyword.other.powershell", + "t": "source.powershell meta.command.powershell keyword.other.powershell", "r": { "dark_plus": "keyword: #569CD6", "light_plus": "keyword: #0000FF", @@ -2399,7 +2377,7 @@ }, { "c": "setVSEnv", - "t": "source.powershell variable.other.readwrite.powershell", + "t": "source.powershell meta.command.powershell variable.other.readwrite.powershell", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", @@ -2410,13 +2388,13 @@ }, { "c": ";", - "t": "source.powershell keyword.other.statement-separator.powershell", + "t": "source.powershell meta.command.powershell", "r": { - "dark_plus": "keyword: #569CD6", - "light_plus": "keyword: #0000FF", - "dark_vs": "keyword: #569CD6", - "light_vs": "keyword: #0000FF", - "hc_black": "keyword: #569CD6" + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF" } } ] \ No newline at end of file