summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-04 13:22:36 +0200
committerGitHub <noreply@github.com>2022-07-04 13:22:36 +0200
commitb4644e283556b499a22dada2db5cff12290440ca (patch)
tree44e71901291b3c199540bc2d96802af11cc6feb0 /core
parent1d06fec5354d45c21414bf4b00435868444636cb (diff)
parent0ccde38668434aa8a531680a5bf23db76cc7470c (diff)
Merge pull request #62705 from cdemirer/expression-built-in-function-identifier
Diffstat (limited to 'core')
-rw-r--r--core/math/expression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp
index 419056d7d6..e230b69dc9 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;
}