From a45293d6ff0f0f5f8d4c8f23799e7b6ffabd26b0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 15 Sep 2022 23:33:41 +0200 Subject: [PATCH] Enumerate asm token color names. --- server/TracySourceTokenizer.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracySourceTokenizer.hpp b/server/TracySourceTokenizer.hpp index b02e0aef..3ab76946 100644 --- a/server/TracySourceTokenizer.hpp +++ b/server/TracySourceTokenizer.hpp @@ -38,6 +38,15 @@ public: std::vector tokens; }; + enum class AsmTokenColor : uint8_t + { + Label, // no-op, padding + Default, // '+', '[', '*', etc + SizeDirective, // byte, word, dword, etc + Register, // rax, rip, etc + Literal, // 0x04, etc + }; + Tokenizer(); std::vector Tokenize( const char* begin, const char* end );