PowerShell / EditorSyntax

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

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

Open adityapatwardhan opened 5 years ago

adityapatwardhan commented 5 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 5 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.