mirror of
https://github.com/pantor/inja.git
synced 2026-03-27 11:22:47 +00:00
Fix nested function (#159)
* switched order in token::kind::id of function and operator behavior * add tests * fixed nested function order * created single include Co-authored-by: pantor <lars.berscheid@online.de>
This commit is contained in:
@@ -289,6 +289,9 @@ class Parser {
|
||||
}
|
||||
|
||||
function_stack.pop();
|
||||
|
||||
current_expression_list->rpn_output.emplace_back(operator_stack.top());
|
||||
operator_stack.pop();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -3001,6 +3001,9 @@ class Parser {
|
||||
}
|
||||
|
||||
function_stack.pop();
|
||||
|
||||
current_expression_list->rpn_output.emplace_back(operator_stack.top());
|
||||
operator_stack.pop();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user