mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
• 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user