Merge pull request #49445 from Calinou/gdscript-highlight-namespace-reserved-keyword

This commit is contained in:
Rémi Verschelde 2022-02-04 19:03:28 +01:00 committed by GitHub
commit 77d08b68b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -2022,8 +2022,6 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
"preload",
"signal",
"super",
"trait",
"yield",
// var
"const",
"enum",
@ -2040,6 +2038,11 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
"return",
"match",
"while",
// These keywords are not implemented currently, but reserved for (potential) future use.
// We highlight them as keywords to make errors easier to understand.
"trait",
"namespace",
"yield",
nullptr
};