mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
1a231787b0
Check identifiers (const variables and unnamed enums) and named enums when parsing dictionary literals whether the keys are not duplicated. In case of duplicate key is encountered, highlight the line with it and print error message: `Duplicate key "foo" found in Dictionary literal` This commit is a logical continuation of the commit dab73c7 which implemented such checks only for literal keys (which fixed #7034). Apart from that, this commit also fixes the issue with the error message itself, which was shown one line below the duplicated key in case it was the last one in the dictionary literal and there was no hanging comma. Also, the format of the error message has been changed so that now the error message also contains the value of the key which is duplicated. Instead of `Duplicate key found in Dictionary literal`, it now prints `Duplicate key "<value>" found in Dictionary literal` Fixes #50971 |
||
---|---|---|
.. | ||
doc_classes | ||
editor | ||
icons | ||
language_server | ||
config.py | ||
gdscript_compiler.cpp | ||
gdscript_compiler.h | ||
gdscript_editor.cpp | ||
gdscript_function.cpp | ||
gdscript_function.h | ||
gdscript_functions.cpp | ||
gdscript_functions.h | ||
gdscript_parser.cpp | ||
gdscript_parser.h | ||
gdscript_tokenizer.cpp | ||
gdscript_tokenizer.h | ||
gdscript.cpp | ||
gdscript.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |