PowerShell / EditorSyntax

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

Possible update to syntax highlighting for `??` `??=` `?.` `?[]` operators #185

Open adityapatwardhan opened 4 years ago

adityapatwardhan commented 4 years ago

Environment

Issue Description

New feature added to PowerShell https://github.com/PowerShell/PowerShell/pull/10636 for null coalescing operators. New feature added to PowerShell https://github.com/PowerShell/PowerShell/pull/10960 for null conditional member access.

Screenshots

Expected Behavior

Code Samples


$x ?? $y
$x ??= 10

${x}?.name
${x}?[0]
${x}?.MyMethod()
${x}?.name = 'myname'
${x}?['item'] = 'value'
TylerLeonhardt commented 4 years ago

My recommendation is to see what their TextMate scopes are today and see if they make sense.

From the code samples they look good so you might get away with not having to do any work.