You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
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.
This commit is contained in:
@@ -2687,6 +2687,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
|||||||
"float",
|
"float",
|
||||||
"int",
|
"int",
|
||||||
"null",
|
"null",
|
||||||
|
"PI",
|
||||||
"self",
|
"self",
|
||||||
"true",
|
"true",
|
||||||
// functions
|
// functions
|
||||||
@@ -2695,6 +2696,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
|||||||
"class",
|
"class",
|
||||||
"extends",
|
"extends",
|
||||||
"func",
|
"func",
|
||||||
|
"preload"
|
||||||
"setget",
|
"setget",
|
||||||
"signal",
|
"signal",
|
||||||
"tool",
|
"tool",
|
||||||
|
|||||||
Reference in New Issue
Block a user