If referring to a property/method of an object returned as part of a method call within a $(....) unit within a double quoted string, that property is recognised as text instead.
e.g. in the following:
Write-log "Error updating : $($_.Exception.GetBaseException().Message)"
The final ".Message" is matched in a different colour to "Exception" and "GetBaseException"
If referring to a property/method of an object returned as part of a method call within a $(....) unit within a double quoted string, that property is recognised as text instead. e.g. in the following:
Write-log "Error updating : $($_.Exception.GetBaseException().Message)"
The final ".Message" is matched in a different colour to "Exception" and "GetBaseException"