From 808aa94420e1d35d7b6b7d58ccb31d0b1c91e0a9 Mon Sep 17 00:00:00 2001 From: matteocoder <22897138+matteocoder@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:32:33 +0200 Subject: [PATCH] Match word boundary to avoid highlighting invalid arguments Co-authored-by: deathaxe --- PowerShell.sublime-syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShell.sublime-syntax b/PowerShell.sublime-syntax index 2ba24e7..ad864df 100644 --- a/PowerShell.sublime-syntax +++ b/PowerShell.sublime-syntax @@ -302,7 +302,7 @@ contexts: | ValueFromRemainingArguments | Position(?:alBinding)? | (?:Default)?ParameterSetName | SupportsShouldProcess | SupportsPaging | HelpUri | ConfirmImpact | HelpMessage - ) + )\b \s*(=)? ) captures: