EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

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

Open adityapatwardhan opened this issue 6 years ago • 1 comments
trafficstars

Environment

  • Editor and Version (VS Code, Atom, Sublime):
  • Your primary theme: Dark

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'

adityapatwardhan avatar Oct 11 '19 19:10 adityapatwardhan

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.

TylerLeonhardt avatar Oct 14 '19 15:10 TylerLeonhardt