visual studio 2005 - VS2005 SQL Syntax highlighting is incorrect for nested comments? -


I am working with VS 2005 and SSMS 2005.

SQL Server allows nested comments as follows:

  / * comment 1 / * comment 2 * / comment out some code here * /  

This code is working fine. However, if inserted into an SSLL file in the above VS 2005, it shows incorrectly-generated code as 'active' (not green). It seems that Stack Overflow has highlighted the code in the same way.

Is this a bug in VS2005? Or is SSMS handled nested comments differently than ANSI SQL standards?

Can someone explain this discrepancy, and if this appears to be a bug, then is there a way to correct syntax highlighting?

I tried to do it in SSMS 2008 and VS2010 and it's all green, so I think it's a bug in VS2005?

/ P>


Comments