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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user