Bug 540298

Summary: Some keywords should not be highlighted as keywords depending on the context
Product: [Mono] MonoDevelop Reporter: Andres Aragoneses <aaragoneses>
Component: C# BindingAssignee: Mike Krueger <mkrueger>
Status: RESOLVED DUPLICATE QA Contact: MD Bugs <monodevelop-bugs>
Severity: Normal    
Priority: P5 - None    
Version: SVN   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andres Aragoneses 2009-09-18 16:03:48 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.
Comment 1 Mike Krueger 2009-09-18 19:26:28 UTC
Already open.

*** This bug has been marked as a duplicate of bug 432735 ***