• allow whitespace before colon when declaring functions as ‘foo: function () { … }’

git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle@4874 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
duff
2006-08-21 12:10:57 +00:00
parent d526582b54
commit 269f63f493
+1 -1
View File
@@ -65,7 +65,7 @@
<key>comment</key>
<string>match stuff like: foobar: function() { … }</string>
<key>match</key>
<string>\b([a-zA-Z_?\.$]+\w*):\s+\b(function)?\s*\((.*?)\)</string>
<string>\b([a-zA-Z_?\.$]+\w*)\s*:\s+\b(function)?\s*\((.*?)\)</string>
<key>name</key>
<string>meta.function.js</string>
</dict>