Added if, else and else if to pattern language

This commit is contained in:
WerWolv
2021-01-07 00:02:51 +01:00
parent d8b16766f5
commit acfd5aa02f
8 changed files with 348 additions and 106 deletions

View File

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