mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add coloring for completion of vector components
This commit is contained in:
parent
f7c48cf803
commit
35802374ac
8 changed files with 34 additions and 5 deletions
|
@ -1207,6 +1207,9 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base
|
|||
for (const PropertyInfo &E : members) {
|
||||
if (!String(E.name).contains("/")) {
|
||||
ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_MEMBER);
|
||||
if (GDScriptParser::theme_color_names.has(E.name)) {
|
||||
option.theme_color_name = GDScriptParser::theme_color_names[E.name];
|
||||
}
|
||||
r_result.insert(option.display, option);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue