You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #3582 from akien-mga/pr-reserved-keyords
Add preload and PI to GDScript reserved keywords
This commit is contained in:
@@ -2678,40 +2678,47 @@ void GDScriptLanguage::frame() {
|
|||||||
void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
|
|
||||||
static const char *_reserved_words[]={
|
static const char *_reserved_words[]={
|
||||||
"break",
|
// operators
|
||||||
"class",
|
|
||||||
"continue",
|
|
||||||
"const",
|
|
||||||
"else",
|
|
||||||
"elif",
|
|
||||||
"enum",
|
|
||||||
"extends" ,
|
|
||||||
"onready",
|
|
||||||
"for" ,
|
|
||||||
"func" ,
|
|
||||||
"if" ,
|
|
||||||
"in" ,
|
|
||||||
"null" ,
|
|
||||||
"not" ,
|
|
||||||
"return" ,
|
|
||||||
"self" ,
|
|
||||||
"while" ,
|
|
||||||
"true" ,
|
|
||||||
"false" ,
|
|
||||||
"tool",
|
|
||||||
"var",
|
|
||||||
"setget",
|
|
||||||
"pass",
|
|
||||||
"and",
|
"and",
|
||||||
|
"in",
|
||||||
|
"not",
|
||||||
"or",
|
"or",
|
||||||
"export",
|
// types and values
|
||||||
"assert",
|
"false",
|
||||||
"breakpoint",
|
|
||||||
"yield",
|
|
||||||
"static",
|
|
||||||
"float",
|
"float",
|
||||||
"int",
|
"int",
|
||||||
|
"null",
|
||||||
|
"PI",
|
||||||
|
"self",
|
||||||
|
"true",
|
||||||
|
// functions
|
||||||
|
"assert",
|
||||||
|
"breakpoint",
|
||||||
|
"class",
|
||||||
|
"extends",
|
||||||
|
"func",
|
||||||
|
"preload"
|
||||||
|
"setget",
|
||||||
"signal",
|
"signal",
|
||||||
|
"tool",
|
||||||
|
"yield",
|
||||||
|
// var
|
||||||
|
"const",
|
||||||
|
"enum",
|
||||||
|
"export",
|
||||||
|
"onready",
|
||||||
|
"static",
|
||||||
|
"var",
|
||||||
|
// control flow
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"if",
|
||||||
|
"elif",
|
||||||
|
"else",
|
||||||
|
"for",
|
||||||
|
"pass",
|
||||||
|
"return",
|
||||||
|
"while",
|
||||||
0};
|
0};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user