You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #18531 from KidRigger/issue5972
Adds keywords to autocomplete predictions.
This commit is contained in:
@@ -1522,6 +1522,13 @@ static void _find_identifiers(GDScriptCompletionContext &context, int p_line, bo
|
|||||||
result.insert(_type_names[i]);
|
result.insert(_type_names[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<String> reserved_words;
|
||||||
|
GDScriptLanguage::get_singleton()->get_reserved_words(&reserved_words);
|
||||||
|
|
||||||
|
for (List<String>::Element *E = reserved_words.front(); E; E = E->next()) {
|
||||||
|
result.insert(E->get());
|
||||||
|
}
|
||||||
|
|
||||||
//autoload singletons
|
//autoload singletons
|
||||||
List<PropertyInfo> props;
|
List<PropertyInfo> props;
|
||||||
ProjectSettings::get_singleton()->get_property_list(&props);
|
ProjectSettings::get_singleton()->get_property_list(&props);
|
||||||
|
|||||||
Reference in New Issue
Block a user