You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Highlight "namespace" as a GDScript keyword in the syntax highlighter
Like "trait" and "yield", "namespace" is currently not implemented but is still reserved for future use.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user