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

git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10110 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
subtlegradient
2008-07-02 17:01:36 +00:00
parent 60c8151e9b
commit 87f90e9d19
+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>