Browse Source

[Completion] Added missing async/await keywords.

newNRvisualizers
Mike Krüger 13 years ago
parent
commit
4da0cc3265
  1. 6
      ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs

6
ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs

@ -1959,6 +1959,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
case "sealed": case "sealed":
case "override": case "override":
case "partial": case "partial":
case "async":
declarationBegin = j; declarationBegin = j;
break; break;
case "static": case "static":
@ -1988,6 +1989,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
case "internal": case "internal":
case "sealed": case "sealed":
case "override": case "override":
case "async":
declarationBegin = j; declarationBegin = j;
break; break;
case "static": case "static":
@ -3175,7 +3177,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
"unchecked", "const", "continue", "do", "finally", "fixed", "for", "foreach", "unchecked", "const", "continue", "do", "finally", "fixed", "for", "foreach",
"goto", "if", "lock", "return", "stackalloc", "switch", "throw", "try", "unsafe", "goto", "if", "lock", "return", "stackalloc", "switch", "throw", "try", "unsafe",
"using", "while", "yield", "using", "while", "yield",
"catch" "catch", "await"
}; };
static string[] globalLevelKeywords = new string [] { static string[] globalLevelKeywords = new string [] {
"namespace", "using", "extern", "public", "internal", "namespace", "using", "extern", "public", "internal",
@ -3183,7 +3185,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
"abstract", "sealed", "static", "unsafe", "partial" "abstract", "sealed", "static", "unsafe", "partial"
}; };
static string[] accessorModifierKeywords = new string [] { static string[] accessorModifierKeywords = new string [] {
"public", "internal", "protected", "private" "public", "internal", "protected", "private", "async"
}; };
static string[] typeLevelKeywords = new string [] { static string[] typeLevelKeywords = new string [] {
"public", "internal", "protected", "private", "public", "internal", "protected", "private",

Loading…
Cancel
Save