Skip to content

Commit 6f54386

Browse files
authored
Merge pull request #117 from kborowinski/master
Fix #116 and add support for SupportsPaging attribute
2 parents 8e66e81 + 00228ac commit 6f54386

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PowerShellSyntax.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@
474474
</dict>
475475
<dict>
476476
<key>match</key>
477-
<string>(?i)\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|positionalbinding|helpuri|confirmimpact|helpmessage)\b(?:\s+)?(=)</string>
477+
<string>(?i)\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\b(?:\s+)?(=)?</string>
478478
<key>captures</key>
479479
<dict>
480480
<key>1</key>

spec/testfiles/syntax_test_TheBigTestFile.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,9 @@ function Verb-Noun
791791
# ^ meta.attribute.powershell keyword.operator.assignment.powershell
792792
# ^ meta.attribute.powershell constant.numeric.integer.powershell
793793
# ^ meta.attribute.powershell keyword.operator.other.powershell
794+
SupportsPaging,
795+
# ^^^^^^^^^^^^^^ meta.attribute.powershell variable.parameter.attribute.powershell
796+
# ^ meta.attribute.powershell keyword.operator.other.powershell
794797
ParameterSetName = 'Parameter Set 1')]
795798
# ^^^^^^^^^^^^^^^^ meta.attribute.powershell variable.parameter.attribute.powershell
796799
# ^ meta.attribute.powershell keyword.operator.assignment.powershell

0 commit comments

Comments
 (0)