patterns: Added array index syntax to rvalues and turned addressof/sizeof into operators

This commit is contained in:
WerWolv
2021-04-21 10:17:42 +02:00
parent 407c13fcce
commit 32d47456de
11 changed files with 188 additions and 225 deletions

View File

@@ -15,7 +15,7 @@ namespace hex {
static TextEditor::LanguageDefinition langDef;
if (!initialized) {
static const char* const keywords[] = {
"using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "false", "true", "parent"
"using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "false", "true", "parent", "addressof", "sizeof"
};
for (auto& k : keywords)
langDef.mKeywords.insert(k);