Skip to content

Commit 93565f4

Browse files
Merge pull request SublimeText#182 from matteocoder/clean-keyword
Add 'clean' block keyword to PowerShell.sublime-syntax
2 parents 030a9c6 + 9b21f08 commit 93565f4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

PowerShell.sublime-syntax

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ contexts:
102102
scope: keyword.context.block.begin.powershell
103103
- match: \b(?i:end){{kebab_break}}
104104
scope: keyword.context.block.end.powershell
105+
- match: \b(?i:clean){{kebab_break}}
106+
scope: keyword.context.block.clean.powershell
105107
# Loops
106108
- match: \b(?i:for|foreach(?!-object)){{kebab_break}}
107109
scope: keyword.control.loop.for.powershell

Tests/syntax_test_PowerShell.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,10 @@ catch { }
11311131
# <- keyword.control
11321132
# ^ punctuation.section.braces.begin
11331133
# ^ punctuation.section.braces.end
1134+
clean { }
1135+
# <- keyword.context.block.clean
1136+
# ^ punctuation.section.braces.begin
1137+
# ^ punctuation.section.braces.end
11341138

11351139
# Reserved words
11361140
Configuration Crazyness {

0 commit comments

Comments
 (0)