mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
patterns: Updated pattern language
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: c55097909e...7c71d3042a
@@ -261,7 +261,7 @@ namespace hex::plugin::builtin {
|
||||
PerProvider<TextEditor::Breakpoints> m_breakpoints;
|
||||
PerProvider<std::optional<pl::core::err::PatternLanguageError>> m_lastEvaluationError;
|
||||
PerProvider<std::vector<pl::core::err::CompileError>> m_lastCompileError;
|
||||
PerProvider<const std::vector<std::unique_ptr<pl::core::ast::ASTNode>>*> m_callStack;
|
||||
PerProvider<const std::vector<pl::core::Evaluator::StackTrace>*> m_callStack;
|
||||
PerProvider<std::map<std::string, pl::core::Token::Literal>> m_lastEvaluationOutVars;
|
||||
PerProvider<std::map<std::string, PatternVariable>> m_patternVariables;
|
||||
PerProvider<std::map<u64, pl::api::Section>> m_sections;
|
||||
|
||||
@@ -1476,7 +1476,7 @@ namespace hex::plugin::builtin {
|
||||
TextEditor::ErrorMarkers errorMarkers;
|
||||
if (!(*m_callStack)->empty()) {
|
||||
for (const auto &frame : **m_callStack | std::views::reverse) {
|
||||
auto location = frame->getLocation();
|
||||
auto location = frame.node->getLocation();
|
||||
std::string message;
|
||||
if (location.source != nullptr && location.source->mainSource) {
|
||||
if (m_lastEvaluationError->has_value())
|
||||
|
||||
Reference in New Issue
Block a user