1
0
mirror of synced 2025-01-19 01:24:15 +01:00

patterns: Added match keyword to syntax highlighting

This commit is contained in:
WerWolv 2023-02-16 19:10:08 +01:00
parent 5ccbfc1ff8
commit b19276a3e9

View File

@ -29,7 +29,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", "false", "true", "this", "parent", "addressof", "sizeof", "$", "while", "for", "fn", "return", "break", "continue", "namespace", "in", "out", "ref", "null", "const"
"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"
};
for (auto &k : keywords)
langDef.mKeywords.insert(k);