You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Colorize SQL colors incorrectly when there are multi-line comments that are opened and closed in the same line. It colorizes as a comment all the lines between the first "/" string and the last "/" string that does not have another "/*" in the same line.
To Reproduce
Steps to reproduce the behavior:
Go to any page.
Paste the following SQL code:
SELECT
GETDATE() AS [Today],
/* This is a multi-line comment that starts and ends in the same line */
(GETDATE() + 1) AS [Tomorrow],
CAST(1 as bit) AS [Boolean],
/*This is another multi-line comment that starts and ends in the same line */
CAST(1 as int) AS [Number]
GO
/*
** SQL 2
*/
SELECT
GETDATE() AS [Today],
/* This is a multi-line comment that starts and ends in the same line */
(GETDATE() + 1) AS [Tomorrow],
CAST(1 as bit) AS [Boolean],
/*
This is a multi-line comment that starts and ends in different lines
*/
CAST(1 as int) AS [Number]
GO
Select all the code.
Click on More > Colorize > SQL
Color pattern is incorrect as some non-comment lines are colorized as comments.
Expected behavior
Right color pattern should be similar to this one:
I uninstalled and reinstalled OneMore, just in case.
Then I copied and pasted the SQL code I pasted as a sample. Just Copy & Paste. I selected the text, then clicked Colorize > SQL, and the text was properly colored.
But... after that, I copied the code and pasted it with the Paste Special > Paste Keep Text Only option (this is the method I use most of the time), and then I select the text, click Colorize > SQL, then the coloring pattern is incorrect.
Describe the bug
Colorize SQL colors incorrectly when there are multi-line comments that are opened and closed in the same line. It colorizes as a comment all the lines between the first "/" string and the last "/" string that does not have another "/*" in the same line.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Right color pattern should be similar to this one:
Obtained color pattern is this one:
Environment (if applicable):
The text was updated successfully, but these errors were encountered: