mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Expression built-in functions can also be considered as identifiers in subscripts
This commit is contained in:
@@ -891,7 +891,7 @@ Expression::ENode *Expression::_parse_expression() {
|
|||||||
case TK_PERIOD: {
|
case TK_PERIOD: {
|
||||||
//named indexing or function call
|
//named indexing or function call
|
||||||
_get_token(tk);
|
_get_token(tk);
|
||||||
if (tk.type != TK_IDENTIFIER) {
|
if (tk.type != TK_IDENTIFIER && tk.type != TK_BUILTIN_FUNC) {
|
||||||
_set_error("Expected identifier after '.'");
|
_set_error("Expected identifier after '.'");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user