From a120f904cb1d7ff66ab54ae304cb86f285174c26 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 17 Nov 2005 19:16:58 +0000 Subject: [PATCH] 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 --- Syntaxes/JavaScript.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Syntaxes/JavaScript.plist b/Syntaxes/JavaScript.plist index 9dc1f85..50108a3 100644 --- a/Syntaxes/JavaScript.plist +++ b/Syntaxes/JavaScript.plist @@ -39,7 +39,7 @@ match - \b(function)\s+([a-zA-Z_]\w*)?\s*\((.*?)\) + \b(function)\s+([a-zA-Z_$]\w*)?\s*\((.*?)\) name meta.function.js @@ -65,7 +65,7 @@ comment match stuff like: Sound.prototype.play = function() { … } match - \b([a-zA-Z_?\.]+\w*)\s+=\s+\b(function)?\s*\((.*?)\) + \b([a-zA-Z_?\.$]+\w*)\s+=\s+\b(function)?\s*\((.*?)\) name meta.function.js