Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-16 00:33:41 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-16 00:36:30 +0300
commita45293d6ff0f0f5f8d4c8f23799e7b6ffabd26b0 (patch)
tree00615dd0213b7b3b072896d490959e5262c36b1b /server/TracySourceTokenizer.hpp
parent31b5a464cdb858930fb9fd883962d0c90b839009 (diff)
Enumerate asm token color names.
Diffstat (limited to 'server/TracySourceTokenizer.hpp')
-rw-r--r--server/TracySourceTokenizer.hpp9
1 files changed, 9 insertions, 0 deletions
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<Token> 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<Token> Tokenize( const char* begin, const char* end );