EditorSyntax
EditorSyntax copied to clipboard
Update syntax for && and || statement operators
Issue Description
PS 7 adds the && and || pipeline chain operators. These will need implementing in the TM grammar.
Expected Behavior
Highlight && and || like & or ;, highlight pipelines between them as normal
Code Samples
Get-Command -Name 'mycommand' && & mycommand
I thought they were already in the syntax, but I cannot find them at this time.
In #155 and #156, I have them in as 'invalid.reserved'.
In #155 and #156, I have them in as 'invalid.reserved'.
That's really useful, thanks!
@rjmholt, can you link to a PR in PowerShell/PowerShell where this is being added?
Thanks
I knew I had seen them in this repo, here they are:
https://github.com/PowerShell/EditorSyntax/blob/d10ae29c0d3ceb248172c383a159ae43b9ccfb4d/PowerShellSyntax.tmLanguage#L365-L370
https://github.com/PowerShell/PowerShell-RFC/pull/192