Reorder reserved words by categories

They were previously kind of sorted with a mix between alphabetical and logical ordering, which made it hard to spot duplicates or missing words.
This commit is contained in:
Rémi Verschelde 2016-02-04 10:17:23 +01:00
parent e4cb104e6d
commit 8151110002

View file

@ -2677,40 +2677,45 @@ void GDScriptLanguage::frame() {
void GDScriptLanguage::get_reserved_words(List<String> *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};