diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-02 16:08:09 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-02 16:08:09 +0400 |
commit | 316874899194d77d4bd95e213065123a8839e6eb (patch) | |
tree | 8d4a8f382d0042037e585d7a71b330a0465738bf /main/contrib | |
parent | 049bfd65b89d0a2e319840b9065e02da605662e7 (diff) |
[CSharpBinding] Completion: Added missing follow up char.
Diffstat (limited to 'main/contrib')
-rw-r--r-- | main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs b/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs index fd7a51b823..7388055c1b 100644 --- a/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs +++ b/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs @@ -419,7 +419,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion char prevCh = offset > 2 ? document.GetCharAt (offset - 2) : '\0'; char nextCh = offset < document.TextLength ? document.GetCharAt (offset) : ' '; - const string allowedChars = ";,[(){}+-*/%^?:&|~!<>="; + const string allowedChars = ";,[]{}+-*/%^?:&|~!<>="; if (!Char.IsWhiteSpace (nextCh) && allowedChars.IndexOf (nextCh) < 0) return null; if (!(Char.IsWhiteSpace (prevCh) || allowedChars.IndexOf (prevCh) >= 0)) @@ -453,7 +453,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion continue; contextList.AddMember (property); } - foreach (var field in initalizerResult.Item1.Type.GetFields (ctx)){ + foreach (var field in initalizerResult.Item1.Type.GetFields (ctx)){ if (!field.IsPublic) continue; contextList.AddMember (field); |