Skip to content

Commit 742f0b5

Browse files
authored
Add syntax highlighting for 'clean {}' (#208)
1 parent c150c15 commit 742f0b5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

PowerShellSyntax.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
</dict>
289289
<dict>
290290
<key>match</key>
291-
<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>
291+
<string>(?&lt;!\w|-|\.)((?i:begin|break|catch|clean|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>
292292
<key>name</key>
293293
<string>keyword.control.powershell</string>
294294
</dict>

examples/advancedFunction.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,7 @@ function Verb-Noun
9090
End
9191
{
9292
}
93+
Clean
94+
{
95+
}
9396
}

spec/testfiles/syntax_test_Function.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,7 @@ function Verb-Noun {
370370
# <- keyword.control.powershell
371371

372372
}
373+
Clean {
374+
# <- keyword.control.powershell
375+
}
373376
}

0 commit comments

Comments
 (0)