The type-name can be followed by "[]" like "[byte[]]" (it is an byte array type).
Code: Select all
# the built-in type accelerators (the 3rd column contains the full type-names):
# some of them are highlighted without the [...]
accelerators [accelerators] System.Management.Automation.TypeAccelerators
adsi [adsi] System.DirectoryServices.DirectoryEntry
adsisearcher [adsisearcher] System.DirectoryServices.DirectorySearcher
array [array] System.Array
bigint [bigint] System.Numerics.BigInteger
bool [bool] System.Boolean
byte [byte] System.Byte
char [char] System.Char
cimclass [cimclass] Microsoft.Management.Infrastructure.CimClass
cimconverter [cimconverter] Microsoft.Management.Infrastructure.CimConverter
ciminstance [ciminstance] Microsoft.Management.Infrastructure.CimInstance
cimtype [cimtype] Microsoft.Management.Infrastructure.CimType
cultureinfo [cultureinfo] System.Globalization.CultureInfo
datetime [datetime] System.DateTime
decimal [decimal] System.Decimal
double [double] System.Double
float [float] System.Single
guid [guid] System.Guid
hashtable [hashtable] System.Collections.Hashtable
initialsessionstate [initialsessionstate] System.Management.Automation.Runspaces.InitialSessionState
int [int] System.Int32
int16 [int16] System.Int16
int32 [int32] System.Int32
int64 [int64] System.Int64
ipaddress [ipaddress] System.Net.IPAddress
long [long] System.Int64
mailaddress [mailaddress] System.Net.Mail.MailAddress
powershell [powershell] System.Management.Automation.PowerShell
psaliasproperty [psaliasproperty] System.Management.Automation.PSAliasProperty
pscredential [pscredential] System.Management.Automation.PSCredential
pscustomobject [pscustomobject] System.Management.Automation.PSObject
pslistmodifier [pslistmodifier] System.Management.Automation.PSListModifier
psmoduleinfo [psmoduleinfo] System.Management.Automation.PSModuleInfo
psnoteproperty [psnoteproperty] System.Management.Automation.PSNoteProperty
psobject [psobject] System.Management.Automation.PSObject
psprimitivedictionary [psprimitivedictionary] System.Management.Automation.PSPrimitiveDictionary
psscriptmethod [psscriptmethod] System.Management.Automation.PSScriptMethod
psscriptproperty [psscriptproperty] System.Management.Automation.PSScriptProperty
psvariable [psvariable] System.Management.Automation.PSVariable
psvariableproperty [psvariableproperty] System.Management.Automation.PSVariableProperty
ref [ref] System.Management.Automation.PSReference
regex [regex] System.Text.RegularExpressions.Regex
runspace [runspace] System.Management.Automation.Runspaces.Runspace
runspacefactory [runspacefactory] System.Management.Automation.Runspaces.RunspaceFactory
sbyte [sbyte] System.SByte
scriptblock [scriptblock] System.Management.Automation.ScriptBlock
securestring [securestring] System.Security.SecureString
single [single] System.Single
string [string] System.String
switch [switch] System.Management.Automation.SwitchParameter
timespan [timespan] System.TimeSpan
type [type] System.Type
uint16 [uint16] System.UInt16
uint32 [uint32] System.UInt32
uint64 [uint64] System.UInt64
uri [uri] System.Uri
version [version] System.Version
void [void] System.Void
wmi [wmi] System.Management.ManagementObject
wmiclass [wmiclass] System.Management.ManagementClass
wmisearcher [wmisearcher] System.Management.ManagementObjectSearcher
xml [xml] System.Xml.XmlDocument
[type-or_class]::Method()
[hashtable] $ht
$x = [ordered] @{}
[System.Int64] $var # this type is not fully highlighted wrongly
[System.Uri] $var # this type is not highlighted wrongly
$arr[123] # this "array indexing" is highlighted wrongly
# some "array indexing", these are ok
$arr[345.3]
$arr[10 * 10]
$arr[$v / 2]
Thanks!