[TxMt] Small fix for Perl Bundle

Oscar Bonilla ob at bitmover.com
Mon Feb 27 23:05:49 UTC 2006


This patch fixes a problem with the Perl syntax where if you have a  
function called 'submit', each call will appear as a function  
declaration (sub mit).


Index: Bundles/Perl.tmbundle/Syntaxes/Perl.plist
===================================================================
--- Bundles/Perl.tmbundle/Syntaxes/Perl.plist	(revision 2795)
+++ Bundles/Perl.tmbundle/Syntaxes/Perl.plist	(working copy)
@@ -99,7 +99,7 @@
				</dict>
			</dict>
			<key>match</key>
-			<string>^\s*(sub)\s*([-a-zA-Z0-9_]+)\s*(?:\((.*?)\))?</string>
+			<string>^\s*(sub)\s+([-a-zA-Z0-9_]+)\s*(?:\((.*?)\))?</string>
			<key>name</key>
			<string>meta.function.perl</string>
		</dict>

--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544  80CA F7D5 784D FB46 16C1




More information about the textmate mailing list