diff --git a/PowerShell.sublime-syntax b/PowerShell.sublime-syntax index db3f947..1d1e363 100644 --- a/PowerShell.sublime-syntax +++ b/PowerShell.sublime-syntax @@ -102,6 +102,8 @@ contexts: scope: keyword.context.block.begin.powershell - match: \b(?i:end){{kebab_break}} scope: keyword.context.block.end.powershell + - match: \b(?i:clean){{kebab_break}} + scope: keyword.context.block.clean.powershell # Loops - match: \b(?i:for|foreach(?!-object)){{kebab_break}} scope: keyword.control.loop.for.powershell diff --git a/Tests/syntax_test_PowerShell.ps1 b/Tests/syntax_test_PowerShell.ps1 index db08a45..f1380ee 100644 --- a/Tests/syntax_test_PowerShell.ps1 +++ b/Tests/syntax_test_PowerShell.ps1 @@ -1131,6 +1131,10 @@ catch { } # <- keyword.control # ^ punctuation.section.braces.begin # ^ punctuation.section.braces.end +clean { } +# <- keyword.context.block.clean +# ^ punctuation.section.braces.begin +# ^ punctuation.section.braces.end # Reserved words Configuration Crazyness {