diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-02-04 10:26:10 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-02-04 10:26:10 +0100 |
commit | 99d9188da8f022cf0baca709964df0513700296c (patch) | |
tree | b6ca4c9afee6b05d35c76bdbb58cf45e8a3e1adc /modules/gdscript | |
parent | 8151110002c051a8d7d33ef20439a1980eb29fd8 (diff) |
Add preload and PI to GDScript reserved keywords
I've noticed that gd_tokenizer also has keywords for `switch' and `do', but they seem not to be supported actually (only used in commented code for the shader language), so I don't add them.
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gd_script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index f6eeaaca0c..514c2b210a 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -2687,6 +2687,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const { "float", "int", "null", + "PI", "self", "true", // functions @@ -2695,6 +2696,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const { "class", "extends", "func", + "preload" "setget", "signal", "tool", |