diff options
author | AleryBerry <alejandroecheverria11@gmail.com> | 2023-03-20 21:44:27 +0000 |
---|---|---|
committer | AleryBerry <alejandroecheverria11@gmail.com> | 2023-03-20 21:45:06 +0000 |
commit | 0550f3682b071e51086a7e3a1c39e69d1ee7e026 (patch) | |
tree | 4575d4566d4ae681bf2db76c05da26ed866fed82 /modules/gdscript/gdscript_parser.cpp | |
parent | a7d0e18a317085068c43be29bca1d280d03423a2 (diff) | |
download | redot-engine-0550f3682b071e51086a7e3a1c39e69d1ee7e026.tar.gz |
GDScript: Fix error message for Lua-style dictionary
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 00a3e41c2b..901af4929b 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -2731,12 +2731,12 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_dictionary(ExpressionNode switch (dictionary->style) { case DictionaryNode::LUA_TABLE: if (key != nullptr && key->type != Node::IDENTIFIER && key->type != Node::LITERAL) { - push_error("Expected identifier or string as LUA-style dictionary key."); + push_error(R"(Expected identifier or string as Lua-style dictionary key (e.g "{ key = value }").)"); advance(); break; } if (key != nullptr && key->type == Node::LITERAL && static_cast<LiteralNode *>(key)->value.get_type() != Variant::STRING) { - push_error("Expected identifier or string as LUA-style dictionary key."); + push_error(R"(Expected identifier or string as Lua-style dictionary key (e.g "{ key = value }").)"); advance(); break; } |