diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 62c5eb735a7..f6eeaaca0ca 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -2677,40 +2677,45 @@ void GDScriptLanguage::frame() { void GDScriptLanguage::get_reserved_words(List *p_words) const { static const char *_reserved_words[]={ - "break", - "class", - "continue", - "const", - "else", - "elif", - "enum", - "extends" , - "onready", - "for" , - "func" , - "if" , - "in" , - "null" , - "not" , - "return" , - "self" , - "while" , - "true" , - "false" , - "tool", - "var", - "setget", - "pass", + // operators "and", + "in", + "not", "or", - "export", - "assert", - "breakpoint", - "yield", - "static", + // types and values + "false", "float", "int", + "null", + "self", + "true", + // functions + "assert", + "breakpoint", + "class", + "extends", + "func", + "setget", "signal", + "tool", + "yield", + // var + "const", + "enum", + "export", + "onready", + "static", + "var", + // control flow + "break", + "continue", + "if", + "elif", + "else", + "for", + "pass", + "return", + "while", 0};