Skip to content

Commit 8e66e81

Browse files
authored
Merge pull request #108 from vors/sequence
Add sequence as a keyword
2 parents 6656916 + aea9f79 commit 8e66e81

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

PowerShellSyntax.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
</dict>
243243
<dict>
244244
<key>match</key>
245-
<string>(?&lt;!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|var|while)|%|\?)(?!\w)</string>
245+
<string>(?&lt;!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\?)(?!\w)</string>
246246
<key>name</key>
247247
<string>keyword.control.powershell</string>
248248
</dict>

spec/testfiles/syntax_test_TheBigTestFile.ps1

+5-2
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,14 @@ workflow w1 {}
11611161
# ^ entity.name.function.powershell
11621162
# ^ punctuation.section.braces.begin.powershell
11631163
# ^ punctuation.section.braces.end.powershell
1164-
Workflow work {}
1164+
Workflow work { sequence {} }
11651165
# <- storage.type.powershell
11661166
# ^ entity.name.function.powershell
11671167
# ^ punctuation.section.braces.begin.powershell
1168-
# ^ punctuation.section.braces.end.powershell
1168+
# ^^^^^^^^ keyword.control.powershell
1169+
# ^ punctuation.section.braces.begin.powershell
1170+
# ^ punctuation.section.braces.end.powershell
1171+
# ^ punctuation.section.braces.end.powershell
11691172
get-thing | Out-WithYou > $null # destroy
11701173
# ^ ^ support.function.powershell
11711174
# ^ keyword.operator.other.powershell

0 commit comments

Comments
 (0)