diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-15 01:45:43 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-15 01:50:34 +0200 |
commit | c0e4d7efca7eb24e91783a0ee15ac0ef0248833c (patch) | |
tree | 2a116dbb186f1158d75633e251fccd2c4853ed86 /modules/gdscript/gdscript_parser.cpp | |
parent | 1e9b46d6877acd1b397be83f5264bf1511c56407 (diff) |
Add GDScript slave keyword deprecation warning.
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 14143c0866..89e102a858 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -4443,6 +4443,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) { continue; } break; case GDScriptTokenizer::TK_PR_SLAVE: + _add_warning(GDScriptWarning::DEPRECATED_KEYWORD, tokenizer->get_token_line(), "slave", "puppet"); case GDScriptTokenizer::TK_PR_PUPPET: { //may be fallthrough from export, ignore if so |