From d0a5c144e6ae3ebb4ed93f15493ecc45a8d444a2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 26 Jul 2023 00:23:09 +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 ba3dc71fe..fde019ba2 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit ba3dc71fe0fc69734badbffef0623ac9973ec1de +Subproject commit fde019ba2387c4163909ecd90d1d583591a69599 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index dfb466dbc..6b10d2d18 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -35,7 +35,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", "try", "catch" + "using", "struct", "union", "enum", "bitfield", "be", "le", "if", "else", "match", "false", "true", "this", "parent", "addressof", "sizeof", "typenameof", "$", "while", "for", "fn", "return", "break", "continue", "namespace", "in", "out", "ref", "null", "const", "unsigned", "signed", "try", "catch" }; for (auto &k : keywords) langDef.mKeywords.insert(k);