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