Explorar o código

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.
Rémi Verschelde %!s(int64=9) %!d(string=hai) anos
pai
achega
99d9188da8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules/gdscript/gd_script.cpp

+ 2 - 0
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",