{ "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/d10ae29c0d3ceb248172c383a159ae43b9ccfb4d", "name": "PowerShell", "scopeName": "source.powershell", "patterns": [ { "begin": "<#", "beginCaptures": { "0": { "name": "punctuation.definition.comment.block.begin.powershell" } }, "end": "#>", "endCaptures": { "0": { "name": "punctuation.definition.comment.block.end.powershell" } }, "name": "comment.block.powershell", "patterns": [ { "include": "#commentEmbeddedDocs" } ] }, { "match": "[2-6]>&1|>>|>|<<|<|>|>\\||[1-6]>|[1-6]>>", "name": "keyword.operator.redirection.powershell" }, { "include": "#commands" }, { "include": "#commentLine" }, { "include": "#variable" }, { "include": "#interpolatedStringContent" }, { "include": "#function" }, { "include": "#attribute" }, { "include": "#UsingDirective" }, { "include": "#type" }, { "include": "#hashtable" }, { "include": "#doubleQuotedString" }, { "include": "#scriptblock" }, { "comment": "Needed to parse stuff correctly in 'argument mode'. (See about_parsing.)", "include": "#doubleQuotedStringEscapes" }, { "begin": "(?{1,5})}", "name": "constant.character.escape.powershell" }, { "match": "`u(?:\\{[0-9a-fA-F]{,6}.)?", "name": "invalid.character.escape.powershell" } ] }, "function": { "begin": "^(?:\\s*+)(?i)(function|filter|configuration|workflow)\\s+(?:(global|local|script|private):)?((?:\\p{L}|\\d|_|-|\\.)+)", "beginCaptures": { "0": { "name": "meta.function.powershell" }, "1": { "name": "storage.type.powershell" }, "2": { "name": "storage.modifier.scope.powershell" }, "3": { "name": "entity.name.function.powershell" } }, "end": "(?=\\{|\\()", "patterns": [ { "include": "#commentLine" } ] }, "interpolatedStringContent": { "begin": "\\(", "beginCaptures": { "0": { "name": "punctuation.section.group.begin.powershell" } }, "contentName": "interpolated.simple.source.powershell", "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.group.end.powershell" } }, "patterns": [ { "include": "$self" }, { "include": "#interpolation" }, { "include": "#interpolatedStringContent" } ] }, "interpolation": { "begin": "(\\$)(\\()", "beginCaptures": { "1": { "name": "punctuation.definition.variable.powershell" }, "2": { "name": "punctuation.section.group.begin.powershell" } }, "contentName": "interpolated.complex.source.powershell", "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.group.end.powershell" } }, "patterns": [ { "include": "$self" }, { "include": "#interpolation" }, { "include": "#interpolatedStringContent" } ] }, "numericConstant": { "patterns": [ { "captures": { "1": { "name": "constant.numeric.hex.powershell" }, "2": { "name": "keyword.other.powershell" } }, "match": "(?