View Revisions: Issue #329

Summary 0000329: Better support for SQL comments in SQL highlighter
Revision 2009-10-02 14:41 by administrator
Description The 4.2 SQL highlighter %%(sql)... doesn't do SQL comments very well. That is, both
the "--" comments that go until the end of line and the "Pascal-type" block
comments. Following is a sample with SQL Server Management Studio (SSMS)
coloring:

SELECT * FROM sys.tables

DECLARE @MyVar int -- here is an end-of-line comment

Declare @MyVarToo /* xyz embedded */ varchar(20)

/*

Or a "big block" comment

SELECT nuttin from notable

*/

I'm wondering if anybody has looked at this for 4.3, or if I could possibly
contribute.

I am more expert in (SQL Server) SQL than in PHP, but I understand syntax
parsing pretty well and could take a look.
Revision 2009-10-02 14:38 by administrator
Description The 4.2 SQL highlighter doesn't do SQL comments very well. That is, both
the "--" comments that go until the end of line and the "Pascal-type" block
comments. Following is a sample with SQL Server Management Studio (SSMS)
coloring:
Revision 2009-10-02 14:37 by administrator
Description The 4.