[TxMt] [PHP Bundle] SQL syntax highlighting bug

Derek Jones forumreplies at comcast.net
Wed Jul 11 22:23:33 UTC 2007


Sample:

	$sql = "INSERT INTO table (field) VALUES ('".$foo."')";

The bundle in 1.5.6 (1405) doesn't break out of SQL syntax  
highlighting properly on the string.  To fix sql-string-double-quoted  
and sql-string-single-quoted change:

	end = '"';

to regex:

	end = '.*?"';

Forgive this PHP programmer if Ruby regex differs and there's a  
better fix than this!



More information about the textmate mailing list