set x "hello [regsub {abc} "abcdef" {fed}] world"At the end of this line the scope would be: source.tcl > string.quoted.double.tcl > source.tcl.embedded where it should be just source.tcl; the attached patch fixes this by making the check for the ] at the end of the regsub and regexp command syntax a zero-width lookahead assertion.
A patch (created by svn diff) is attached. It's a very simple fix, and I've not noticed that it introduces any problems. One other thing to consider along similar lines is making source.tcl include #embedded; while this is more technically correct to the code structure it's not going to affect syntax highlighting any.
Best regards, Taylor Venable [email protected] http://real.metasyntax.net:2357/
tcl.diff
Description: Binary data
_______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
