nullable value type colours

This commit is contained in:
Matt Parker
2025-12-18 15:54:49 +10:00
parent 75b2ba9f51
commit 54a3d0f37b

View File

@@ -35,6 +35,7 @@ public partial class ThreadsVariablesSubTab
{ Value: "true" or "false" } => CachedColors.KeywordBlue,
{ Type: "string" or "char" } => CachedColors.LightOrangeBrown,
{ Type: "byte" or "sbyte" or "short" or "ushort" or "int" or "uint" or "long" or "ulong" or "nint" or "nuint" or "float" or "double" or "decimal" } => CachedColors.NumberGreen,
{ Type: "byte?" or "sbyte?" or "short?" or "ushort?" or "int?" or "uint?" or "long?" or "ulong?" or "nint?" or "nuint?" or "float?" or "double?" or "decimal?" } => CachedColors.NumberGreen, // value here will never actually be null, as we handled "null" value above
_ => VariableWhiteColor
};