PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
133 stars 45 forks source link

Add syntax highlighting for 'clean {}' block #208

Closed daxian-dbw closed 3 years ago

daxian-dbw commented 3 years ago

This is a follow-up PR of #186, because of the renaming of the new named block.

function Get-Foo {
    [CmdletBinding()]
    param()

    begin { }
    process { }
    end { }
    clean { }
}

Reference https://github.com/PowerShell/PowerShell/pull/15177 for indication on when the feature will become available. https://github.com/PowerShell/PowerShell/pull/15177 did some design changes based on the original PR PowerShell/PowerShell#9900

/cc @andschwa and @vexx32

andyleejordan commented 3 years ago

Thanks for this @daxian-dbw! We'll get it merged closer to the timeline of the feature itself being merged.

daxian-dbw commented 3 years ago

@andschwa https://github.com/PowerShell/PowerShell/pull/15177 has been merged, so can you please review this PR and maybe merge it as well?