mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
Add $ as a possible character to start a function name with
I don't know what is actually legal, google tells me word and underscore, but $ is obviously legal as I have code here that has methods starting with it. git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript.tmbundle@2173 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</dict>
|
||||
</dict>
|
||||
<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>
|
||||
@@ -65,7 +65,7 @@
|
||||
<key>comment</key>
|
||||
<string>match stuff like: Sound.prototype.play = function() { … }</string>
|
||||
<key>match</key>
|
||||
<string>\b([a-zA-Z_?\.]+\w*)\s+=\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