summaryrefslogtreecommitdiff
path: root/modules/gdscript/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-03 22:21:24 +0100
committerGitHub <noreply@github.com>2022-02-03 22:21:24 +0100
commitf8f19b313d62b707467c54d245b9c3e0ad53f34f (patch)
tree975f9c64fe51c3809c7c3b2eb0cd46d3563d2bd2 /modules/gdscript/editor
parent025e778020dde6dcee89f5ae1e2a63ccddc24340 (diff)
parentadbe948bda202209b55249198e1837324e703ddb (diff)
Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
Diffstat (limited to 'modules/gdscript/editor')
-rw-r--r--modules/gdscript/editor/gdscript_highlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp
index 5cc295bbab..2f571874ae 100644
--- a/modules/gdscript/editor/gdscript_highlighter.cpp
+++ b/modules/gdscript/editor/gdscript_highlighter.cpp
@@ -585,7 +585,7 @@ void GDScriptSyntaxHighlighter::_update_cache() {
if (E.usage & PROPERTY_USAGE_CATEGORY || E.usage & PROPERTY_USAGE_GROUP || E.usage & PROPERTY_USAGE_SUBGROUP) {
continue;
}
- if (name.find("/") != -1) {
+ if (name.contains("/")) {
continue;
}
member_keywords[name] = member_variable_color;