mirror of
https://github.com/pantor/inja.git
synced 2026-06-10 12:59:51 +00:00
add test for nested functions
This commit is contained in:
@@ -288,10 +288,13 @@ class Parser {
|
||||
func->callback = function_data.callback;
|
||||
}
|
||||
|
||||
function_stack.pop();
|
||||
|
||||
if (operator_stack.empty()) {
|
||||
throw_parser_error("internal error at function " + func->name);
|
||||
}
|
||||
|
||||
current_expression_list->rpn_output.emplace_back(operator_stack.top());
|
||||
operator_stack.pop();
|
||||
function_stack.pop();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user