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:
kevin
2005-11-17 19:16:58 +00:00
parent aad1c3e5ed
commit a120f904cb
+2 -2
View File
@@ -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>