Skip to content

Commit

Permalink
• handle com.some.namespace.Function = test() { } — ticket 2629590E
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/JavaScript.tmbundle@6787 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
sorbits committed Mar 12, 2007
1 parent efdac8f commit d42329c
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions Syntaxes/JavaScript.plist
Expand Up @@ -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>
Expand Down

0 comments on commit d42329c

Please sign in to comment.