mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
patterns: Added break and continue statements for loops
This commit is contained in:
@@ -25,7 +25,12 @@ namespace hex::plugin::builtin {
|
||||
static TextEditor::LanguageDefinition langDef;
|
||||
if (!initialized) {
|
||||
static const char* const keywords[] = {
|
||||
"using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "false", "true", "this", "parent", "addressof", "sizeof", "$", "while", "for", "fn", "return", "namespace", "in", "out"
|
||||
"using", "struct", "union", "enum", "bitfield",
|
||||
"be", "le", "if", "else", "false", "true",
|
||||
"this", "parent", "addressof", "sizeof",
|
||||
"$",
|
||||
"while", "for", "fn", "return", "break", "continue",
|
||||
"namespace", "in", "out"
|
||||
};
|
||||
for (auto& k : keywords)
|
||||
langDef.mKeywords.insert(k);
|
||||
|
||||
Reference in New Issue
Block a user