1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Fix get_node() and $ autocompletion when using single quotes

This commit is contained in:
Unknown
2017-10-28 23:46:20 +02:00
committed by mhilbrunner
parent c93a3c1bd9
commit 7683ff3e42
4 changed files with 34 additions and 2 deletions

View File

@@ -2111,9 +2111,9 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
for (List<String>::Element *E = opts.front(); E; E = E->next()) {
String opt = E->get().strip_edges();
if (opt.begins_with("\"") && opt.ends_with("\"")) {
if (opt.is_quoted()) {
r_forced = true;
String idopt = opt.substr(1, opt.length() - 2);
String idopt = opt.unquote();
if (idopt.replace("/", "_").is_valid_identifier()) {
options.insert(idopt);
} else {