From b3cfabed24f01fb037fb79cdd757f30ddf24a796 Mon Sep 17 00:00:00 2001 From: matteocoder <22897138+matteocoder@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:46:31 +0100 Subject: [PATCH] Fix variable.parameter.attribute.powershell regex in PowerShell.sublime-syntax Add the SupportsPaging parameter name, and makes the relative test pass. --- PowerShell.sublime-syntax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerShell.sublime-syntax b/PowerShell.sublime-syntax index a5c9c3e..8d1941b 100644 --- a/PowerShell.sublime-syntax +++ b/PowerShell.sublime-syntax @@ -293,10 +293,10 @@ contexts: \b( Mandatory | ValueFromPipeline(?:ByPropertyName)? | ValueFromRemainingArguments | Position - | (?:Default)?ParameterSetName | SupportsShouldProcess + | (?:Default)?ParameterSetName | SupportsShouldProcess | SupportsPaging | PositionalBinding | HelpUri | ConfirmImpact | HelpMessage ) - \s*(=) + \s*(=)? ) captures: 1: variable.parameter.attribute.powershell