Added async and await as C# keywords.
(cherry picked from commit 3dcf0567a1
)
This commit is contained in:
parent
40c779fb70
commit
3f6e8d70cf
|
@ -176,7 +176,7 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
"fixed",
|
"fixed",
|
||||||
"float",
|
"float",
|
||||||
"for",
|
"for",
|
||||||
"forech",
|
"foreach",
|
||||||
"goto",
|
"goto",
|
||||||
"if",
|
"if",
|
||||||
"implicit",
|
"implicit",
|
||||||
|
@ -222,14 +222,17 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
"ushort",
|
"ushort",
|
||||||
"using",
|
"using",
|
||||||
"virtual",
|
"virtual",
|
||||||
"volatile",
|
|
||||||
"void",
|
"void",
|
||||||
|
"volatile",
|
||||||
"while",
|
"while",
|
||||||
|
|
||||||
// Contextual keywords. Not reserved words, but I guess we should include
|
// Contextual keywords. Not reserved words, but I guess we should include
|
||||||
// them because this seems to be used only for syntax highlighting.
|
// them because this seems to be used only for syntax highlighting.
|
||||||
"add",
|
"add",
|
||||||
|
"alias",
|
||||||
"ascending",
|
"ascending",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
"by",
|
"by",
|
||||||
"descending",
|
"descending",
|
||||||
"dynamic",
|
"dynamic",
|
||||||
|
@ -238,10 +241,10 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
"get",
|
"get",
|
||||||
"global",
|
"global",
|
||||||
"group",
|
"group",
|
||||||
"in",
|
|
||||||
"into",
|
"into",
|
||||||
"join",
|
"join",
|
||||||
"let",
|
"let",
|
||||||
|
"nameof",
|
||||||
"on",
|
"on",
|
||||||
"orderby",
|
"orderby",
|
||||||
"partial",
|
"partial",
|
||||||
|
@ -250,6 +253,7 @@ void CSharpLanguage::get_reserved_words(List<String> *p_words) const {
|
||||||
"set",
|
"set",
|
||||||
"value",
|
"value",
|
||||||
"var",
|
"var",
|
||||||
|
"when",
|
||||||
"where",
|
"where",
|
||||||
"yield",
|
"yield",
|
||||||
0
|
0
|
||||||
|
|
Loading…
Reference in New Issue