Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

• handle com.some.namespace.Function = test() { } — ticket 2629590E

git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6787 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit d42329c31a54421887a4ebfcf1fb83fc22afcfc2 1 parent efdac8f
@sorbits sorbits authored
Showing with 41 additions and 5 deletions.
  1. +41 −5 Syntaxes/JavaScript.plist
View
46 Syntaxes/JavaScript.plist
@@ -125,31 +125,67 @@
<key>name</key>
<string>entity.name.function.js</string>
</dict>
- <key>4</key>
+ <key>3</key>
<dict>
<key>name</key>
<string>storage.type.function.js</string>
</dict>
- <key>5</key>
+ <key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.js</string>
</dict>
+ <key>5</key>
+ <dict>
+ <key>name</key>
+ <string>variable.parameter.function.js</string>
+ </dict>
<key>6</key>
<dict>
<key>name</key>
+ <string>punctuation.definition.parameters.end.js</string>
+ </dict>
+ </dict>
+ <key>comment</key>
+ <string>match stuff like: Sound.play = function() { … }</string>
+ <key>match</key>
+ <string>([a-zA-Z_?\.\$]+\w*)\.([a-zA-Z_?\.\$]+\w*)\s*=\s*(function)\s*(\()(.*?)(\))</string>
+ <key>name</key>
+ <string>meta.function.js</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.function.js</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>storage.type.function.js</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.parameters.begin.js</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
<string>variable.parameter.function.js</string>
</dict>
- <key>7</key>
+ <key>5</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.js</string>
</dict>
</dict>
<key>comment</key>
- <string>match stuff like: Sound.play = function() { … } or play = function() { … }</string>
+ <string>match stuff like: play = function() { … }</string>
<key>match</key>
- <string>([a-zA-Z_?\.\$]+\w*)(\.([a-zA-Z_?\.\$]+\w*))?\s*=\s*(function)\s*(\()(.*?)(\))</string>
+ <string>([a-zA-Z_?\$]+\w*)\s*=\s*(function)\s*(\()(.*?)(\))</string>
<key>name</key>
<string>meta.function.js</string>
</dict>
Please sign in to comment.
Something went wrong with that request. Please try again.