From 248b93f41a66d055b830ae3f68959a38eea19610 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 6 Apr 2023 19:23:16 +0200 Subject: [PATCH] patterns: Updated pattern language --- lib/external/pattern_language | 2 +- plugins/builtin/source/content/views/view_pattern_editor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index dc60e31ff..aeb7cd489 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit dc60e31ffbab5b2f4a30ec9b8904dfc62e8bd54b +Subproject commit aeb7cd489ee195fc8f75f9aef1ee4a6e0b943ad6 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 9b444e720..654b2ed9e 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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);