In Heidi 184.108.40.20684 it doesn't restyle (my)SQL-codes to comments when using two dashes followed by a tab. It does work correctly when using a space after it. In previous versions of Heidi the restyling was done as expected. I have attachted a screenshot and the script used.
Bug: tab after -- not recognised as comment
Allow tab after double dash comment in SQL highlighter. See http://www.heidisql.com/forum.php?t=20196 and http://dev.mysql.com/doc/refman/5.7/en/comments.html
r5036 allows a tab instead of space character after the double minus comment.
This is still not fully correct, as the documentation says:
From a “-- ” sequence to the end of the line. In MySQL, the “-- ” (double-dash) comment style requires the second dash to be followed by at least one whitespace or control character (such as a space, tab, newline, and so on).
I'm unsure what they mean by "and so on". But I guess for the everyday work tabs and spaces are sufficient.
Uzi, you are probably not using MSSQL, as igitur was, right?
No, I'm using MySQL, or more exactly, MariaDB 5.5.64. I'm more familiar with using tabs instead of spaces to indent queries. HeidiSQL used to behave fine with "tabs after double hyphens" comments before. This problem's just re-appeared with more recent versions.
Please login to leave a reply, or register at first.