[SVN] PHP 5.3.0 "nowdoc" support

Andrew Hanna andrew at sevenlight.com
Fri Oct 3 15:37:20 UTC 2008


Ciar?n, (letter from your name got replaced, so don't know what your  
full name is, sorry!)

I have made another very minor change to support the new "nowdoc"  
functionality in PHP 5.3.0:

		{	name = 'meta.scope.heredoc';
			begin = "(<<<('?)HTML\2)";
			end = '^(HTML);';
			captures = { 1 = { name = 'keyword.other.heredoc'; }; };
			patterns = ( { include = 'text.html.basic'; } );
		},

This uses the same rule for matching HTML or the new 'HTML' syntax.   
One potential issue would be if there's any PHP code in the new  
"nowdoc" that it could potentially play some mind games on TextMate's  
syntax highlighting, code folds, etc. since PHP code would be legal  
within the nowdoc.  However, in many cases the embedded PHP code would  
not flow well with the rest of the script.  Not sure if this will  
become a big problem for people, but it is a possibility...

-Andrew
– –

Andrew Hanna
Sevenlight Inc.
http://www.sevenlight.com/
ph 403.770.9544


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20081003/4d8412ae/attachment.html>


More information about the textmate-dev mailing list