[TxMt] perl bundle: line_comment

Michael Reece mreece at vinq.com
Fri Jul 28 23:00:01 UTC 2006


can anyone explain why this definition in the perl language bundle  
includes the newline as part of the comment?


line_comment =
		{	name = 'comment.line.number-sign.perl';
			match = '#.*$\n?';
		};


it causes weird things in the mason bundle i use, where if a line of  
perl includes a comment, textmate assumes the following line is also  
perl, when it frequently is not.

% if ( $something ) {  #  something is up
<p>hi, something is up!</p>  textmate thinks this line is perl and  
the syntax highlighting is wrong
% }

if i want to change the line_comment pattern, but not miss any future  
updates that might come with the perl bundle, what is the right way  
to go about it?


---
michael reece :: software engineer :: mreece at vinq.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060728/69f20b0a/attachment.html>


More information about the textmate mailing list