From a02713dc15818dd2d82d5a38b45d2cc33a4de95c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Dec 2021 19:41:04 +0100 Subject: [PATCH] Bump assets/syntaxes/02_Extra/PowerShell from `4a0a076` to `742f0b5` (#1935) * Bump assets/syntaxes/02_Extra/PowerShell from `4a0a076` to `742f0b5` Bumps [assets/syntaxes/02_Extra/PowerShell](https://github.com/PowerShell/EditorSyntax) from `4a0a076` to `742f0b5`. - [Release notes](https://github.com/PowerShell/EditorSyntax/releases) - [Commits](https://github.com/PowerShell/EditorSyntax/compare/4a0a076661d26473cac71b9a17e6a759e9b1c643...742f0b5d4b60f5930c0b47fcc1f646860521296e) --- updated-dependencies: - dependency-name: assets/syntaxes/02_Extra/PowerShell dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Do machine-conversion from .tmLanguage to .sublime-syntax The new .sublime-syntax file is a pure "Tools" -> "Developer" -> "New Syntax from ..." conversion from a licenced version of Sublime Text, Version 3.1.1, Build 3176 with the .tmLanguage as the source file. No manual changes has been made. * Update regression test and add CHANGELOG.md entry Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Nordholts --- CHANGELOG.md | 1 + assets/syntaxes/02_Extra/PowerShell | 2 +- .../02_Extra/PowerShell.sublime-syntax | 106 ++++++++++-------- .../highlighted/PowerShell/test.ps1 | 4 +- 4 files changed, 62 insertions(+), 51 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c2df7ea4c..a4a2f286c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ - The `requirements.txt` syntax has been removed due to incompatible license requirements. - Dart, new highlighter, see #1959 (@Ersikan) - SCSS and Sass syntaxes updated, see #1766 (@Enselic) +- PowerShell syntax updated, see #1935 (@Enselic) ## New themes diff --git a/assets/syntaxes/02_Extra/PowerShell b/assets/syntaxes/02_Extra/PowerShell index 4a0a076661..742f0b5d4b 160000 --- a/assets/syntaxes/02_Extra/PowerShell +++ b/assets/syntaxes/02_Extra/PowerShell @@ -1 +1 @@ -Subproject commit 4a0a076661d26473cac71b9a17e6a759e9b1c643 +Subproject commit 742f0b5d4b60f5930c0b47fcc1f646860521296e diff --git a/assets/syntaxes/02_Extra/PowerShell.sublime-syntax b/assets/syntaxes/02_Extra/PowerShell.sublime-syntax index be84b1d416..3a452a6437 100644 --- a/assets/syntaxes/02_Extra/PowerShell.sublime-syntax +++ b/assets/syntaxes/02_Extra/PowerShell.sublime-syntax @@ -24,7 +24,7 @@ contexts: - include: commands - include: commentLine - include: variable - - include: interpolatedStringContent + - include: subexpression - include: function - include: attribute - include: UsingDirective @@ -33,32 +33,38 @@ contexts: - include: doubleQuotedString - include: scriptblock - include: doubleQuotedStringEscapes - - match: (?