1
0
mirror of synced 2024-11-12 02:00:52 +01:00

patterns: Updated pattern language

This commit is contained in:
WerWolv 2023-04-06 19:23:16 +02:00
parent c73f33aac2
commit 248b93f41a
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit dc60e31ffbab5b2f4a30ec9b8904dfc62e8bd54b
Subproject commit aeb7cd489ee195fc8f75f9aef1ee4a6e0b943ad6

View File

@ -32,7 +32,7 @@ namespace hex::plugin::builtin {
static TextEditor::LanguageDefinition langDef;
if (!initialized) {
constexpr static std::array keywords = {
"using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "match", "false", "true", "this", "parent", "addressof", "sizeof", "$", "while", "for", "fn", "return", "break", "continue", "namespace", "in", "out", "ref", "null", "const", "unsigned", "signed"
"using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "match", "false", "true", "this", "parent", "addressof", "sizeof", "$", "while", "for", "fn", "return", "break", "continue", "namespace", "in", "out", "ref", "null", "const", "unsigned", "signed", "try", "catch"
};
for (auto &k : keywords)
langDef.mKeywords.insert(k);