GNU bug report logs -
#54769
28.1; Incorrect sql comment highlighting
Previous Next
Reported by: emacsq <laszlomail <at> protonmail.com>
Date: Thu, 7 Apr 2022 16:31:01 UTC
Severity: normal
Found in version 28.1
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Attached a small test.sql file where the statement after the comment incorrectly gets comment face.
Looks like the two kinds of comment styles confuses the highlighter:
"You can include a comment in a statement in two ways:
Begin the comment with a slash and an asterisk (/*). Proceed with the text of the comment. This text can span multiple lines. End the comment with an asterisk and a slash (*/). The opening and terminating characters need not be separated from the text by a space or a line break.
Begin the comment with -- (two hyphens). Proceed with the text of the comment. This text cannot extend to a new line. End the comment with a line break.
"
If you remove the hyphens from the /* */ comment then the higlighting is correct.
Such SQL worked fine for me with 27.1, so something must have happened since then.
[Message part 2 (text/html, inline)]
[test.sql (application/sql, attachment)]
This bug report was last modified 3 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.