1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Dummy tokenization of asm operands.

This commit is contained in:
Bartosz Taudul
2022-09-16 00:30:29 +02:00
parent 4913f0e1e6
commit d823a24534
4 changed files with 34 additions and 0 deletions
+9
View File
@@ -47,12 +47,21 @@ public:
Literal, // 0x04, etc
};
struct AsmToken
{
const char* begin;
const char* end;
AsmTokenColor color;
};
Tokenizer();
std::vector<Token> Tokenize( const char* begin, const char* end );
std::vector<AsmToken> TokenizeAsm( const char* begin, const char* end );
private:
TokenColor IdentifyToken( const char*& begin, const char* end );
AsmTokenColor IdentifyAsmToken( const char*& begin, const char* end );
bool m_isInComment;
bool m_isInPreprocessor;