Bugzilla – Bug 540298
Some keywords should not be highlighted as keywords depending on the context
Last modified: 2009-09-18 19:26:28 UTC
Steps to reproduce: 1. Write this code: static void Main(string[] args) { //Create the data source List<int> Scores = new List<int>() { 97, 92, 81, 60 }; // Create the query. IEnumerable<int> queryHighScores = from score in Scores where score > 80 select score; var select = 0; // Execute the query. foreach (int i in queryHighScores) { Console.Write(i + " "); select = i; } } Current results: The keyword "select" is always highlighted. Expected results: The keyword "select" should only be highlighted once.
Already open. *** This bug has been marked as a duplicate of bug 432735 ***