aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorNathan Warden2018-01-30 21:18:48 -0500
committerHein-Pieter van Braam2018-02-05 09:33:01 +0100
commit3f6e8d70cfad6a8e813808ae9c33c8fa6ce85ff0 (patch)
tree65dc8fa0038b0e02a03e3d4ac697efc99aaa8ffb /modules/mono/csharp_script.cpp
parent40c779fb70981b59d5a6b7cd317d86ab767837de (diff)
downloadgodot-3f6e8d70cfad6a8e813808ae9c33c8fa6ce85ff0.tar.gz
godot-3f6e8d70cfad6a8e813808ae9c33c8fa6ce85ff0.tar.zst
godot-3f6e8d70cfad6a8e813808ae9c33c8fa6ce85ff0.zip
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index d0fd3763e..0dc001822 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -176,7 +176,7 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
"fixed",
"float",
"for",
- "forech",
+ "foreach",
"goto",
"if",
"implicit",
@@ -222,14 +222,17 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
"ushort",
"using",
"virtual",
- "volatile",
"void",
+ "volatile",
"while",
// Contextual keywords. Not reserved words, but I guess we should include
// them because this seems to be used only for syntax highlighting.
"add",
+ "alias",
"ascending",
+ "async",
+ "await",
"by",
"descending",
"dynamic",
@@ -238,10 +241,10 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
"get",
"global",
"group",
- "in",
"into",
"join",
"let",
+ "nameof",
"on",
"orderby",
"partial",
@@ -250,6 +253,7 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
"set",
"value",
"var",
+ "when",
"where",
"yield",
0