From ad550fe675248c5dd0ebbb4e719b0f81eb8b7f41 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 1 Sep 2019 13:53:21 +0200 Subject: [PATCH] Add uint{size} aliases used by ildasm. --- ICSharpCode.Decompiler/Metadata/OperandType.cs | 4 +++- ILSpy/TextView/ILAsm-Mode.xshd | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/Metadata/OperandType.cs b/ICSharpCode.Decompiler/Metadata/OperandType.cs index 8a8e7e0fc..900cf1218 100644 --- a/ICSharpCode.Decompiler/Metadata/OperandType.cs +++ b/ICSharpCode.Decompiler/Metadata/OperandType.cs @@ -94,7 +94,9 @@ namespace ICSharpCode.Decompiler.Metadata "vararg", "variant", "vector", "virtual", "void", "wchar", "winapi", "with", "wrapper", // These are not listed as keywords in spec, but ILAsm treats them as such - "property", "type", "flags", "callconv", "strict" + "property", "type", "flags", "callconv", "strict", + // ILDasm uses these keywords for unsigned integers + "uint8", "uint16", "uint32", "uint64" ); } diff --git a/ILSpy/TextView/ILAsm-Mode.xshd b/ILSpy/TextView/ILAsm-Mode.xshd index 20f545b85..12a5631ea 100644 --- a/ILSpy/TextView/ILAsm-Mode.xshd +++ b/ILSpy/TextView/ILAsm-Mode.xshd @@ -252,6 +252,10 @@ int16 int32 int64 + uint8 + uint16 + uint32 + uint64 float float32 float64