From 00228accd04196e16d2971d4c87f14eb03a39726 Mon Sep 17 00:00:00 2001 From: Kris Borowinski Date: Sat, 9 Jun 2018 12:53:12 +0200 Subject: [PATCH] Fix #116 and add support for SupportsPaging attribute --- PowerShellSyntax.tmLanguage | 2 +- spec/testfiles/syntax_test_TheBigTestFile.ps1 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage index 93ef5ea..ffd3a50 100644 --- a/PowerShellSyntax.tmLanguage +++ b/PowerShellSyntax.tmLanguage @@ -474,7 +474,7 @@ match - (?i)\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact|helpmessage)\b(?:\s+)?(=) + (?i)\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\b(?:\s+)?(=)? captures 1 diff --git a/spec/testfiles/syntax_test_TheBigTestFile.ps1 b/spec/testfiles/syntax_test_TheBigTestFile.ps1 index 2dc245f..017634d 100644 --- a/spec/testfiles/syntax_test_TheBigTestFile.ps1 +++ b/spec/testfiles/syntax_test_TheBigTestFile.ps1 @@ -791,6 +791,9 @@ function Verb-Noun # ^ meta.attribute.powershell keyword.operator.assignment.powershell # ^ meta.attribute.powershell constant.numeric.integer.powershell # ^ meta.attribute.powershell keyword.operator.other.powershell + SupportsPaging, + # ^^^^^^^^^^^^^^ meta.attribute.powershell variable.parameter.attribute.powershell + # ^ meta.attribute.powershell keyword.operator.other.powershell ParameterSetName = 'Parameter Set 1')] # ^^^^^^^^^^^^^^^^ meta.attribute.powershell variable.parameter.attribute.powershell # ^ meta.attribute.powershell keyword.operator.assignment.powershell