30CPlusPlusCodeTokeniser::CPlusPlusCodeTokeniser() {}
31CPlusPlusCodeTokeniser::~CPlusPlusCodeTokeniser() {}
35 return CppTokeniserFunctions::readNextToken (source);
48 {
"Error", 0xffcc0000 },
49 {
"Comment", 0xff00aa00 },
50 {
"Keyword", 0xff0000cc },
51 {
"Operator", 0xff225500 },
52 {
"Identifier", 0xff000000 },
53 {
"Integer", 0xff880000 },
54 {
"Float", 0xff885500 },
55 {
"String", 0xff990099 },
56 {
"Bracket", 0xff000055 },
57 {
"Punctuation", 0xff004400 },
58 {
"Preprocessor Text", 0xff660000 }
71 return CppTokeniserFunctions::isReservedKeyword (
token.getCharPointer(),
token.length());
static bool isReservedKeyword(const String &token) noexcept
This is a handy method for checking whether a string is a c++ reserved keyword.
int readNextToken(CodeDocument::Iterator &) override
Reads the next token from the source and returns its token type.
CodeEditorComponent::ColourScheme getDefaultColourScheme() override
Returns a suggested syntax highlighting colour scheme.
Iterates the text in a CodeDocument.
Represents a colour, also including a transparency value.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
unsigned int uint32
A platform-independent 32-bit unsigned integer type.
Defines a syntax highlighting colour scheme.