winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

syntax highlighting nested comments - T-SQL / Microsoft SQL Server

Open SamuelPlentz opened this issue 2 years ago • 0 comments

The syntax highlighting of nested comments in SQL doesn't work like expected. I am not sure if that behavior is special for TSQL / Microsoft SQL Server. It might be different for other providers.

The following SQL file:

select 1
/* test1 /* test2 */ test3 */
select 2

is rendered and handled in Microsoft Management Studio as this:

grafik

However when comparing this file in WinMerge it looks wrong (the "test3" is not green but black - it should be green, because "test3" is still a comment in TSQL):

grafik

By the way: It looks like also Githubs Syntax highlighting struggles to display that properly.

SamuelPlentz avatar Jun 29 '22 14:06 SamuelPlentz