Added global big and little endian support to the pattern parser

This commit is contained in:
WerWolv
2020-11-22 16:22:02 +01:00
parent 989eade5d7
commit 8297e22f10
6 changed files with 79 additions and 11 deletions

View File

@@ -172,6 +172,9 @@ namespace hex::lang {
this->addPragmaHandler("MIME", [](std::string value) {
return !std::all_of(value.begin(), value.end(), isspace) && !value.ends_with('\n') && !value.ends_with('\r');
});
this->addPragmaHandler("endian", [](std::string value) {
return value == "big" || value == "little" || value == "native";
});
}
}