Don't require a space after the function keyword

Merging in a modified version of Joseph Pecoraro's fix here: http://pastie.textmate.org/private/hxkpy8qkahofrxwyvp4coq
This commit is contained in:
Thomas Aylott
2008-07-02 12:42:58 -04:00
parent 0bdaea84f6
commit 6fa933fc13
+1 -1
View File
@@ -186,7 +186,7 @@
<key>comment</key>
<string>match regular function like: function myFunc(arg) { … }</string>
<key>match</key>
<string>\b(function)\s+([a-zA-Z_$]\w*)?\s*(\()(.*?)(\))</string>
<string>\b(function)(?:\s+([a-zA-Z_$]\w*))?\s*(\()(.*?)(\))</string>
<key>name</key>
<string>meta.function.js</string>
</dict>