From 0ccde38668434aa8a531680a5bf23db76cc7470c Mon Sep 17 00:00:00 2001 From: cdemirer <41021322+cdemirer@users.noreply.github.com> Date: Mon, 4 Jul 2022 13:25:43 +0300 Subject: [PATCH] Expression built-in functions can also be considered as identifiers in subscripts --- core/math/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 419056d7d6e..e230b69dc96 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -891,7 +891,7 @@ Expression::ENode *Expression::_parse_expression() { case TK_PERIOD: { //named indexing or function call _get_token(tk); - if (tk.type != TK_IDENTIFIER) { + if (tk.type != TK_IDENTIFIER && tk.type != TK_BUILTIN_FUNC) { _set_error("Expected identifier after '.'"); return nullptr; }