Skip to content

Commit

Permalink
feat: add several new scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
elquimista committed Mar 27, 2016
1 parent e129186 commit 636cf85
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions Syntaxes/CoffeeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,48 @@
<dict>
<key>captures</key>
<dict>
<key>1</key>
<key>3</key>
<dict>
<key>name</key>
<string>variable.parameter.function.coffee</string>
</dict>
<key>2</key>
<key>5</key>
<dict>
<key>name</key>
<string>storage.type.function.coffee</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.brace.round.coffee</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>meta.brace.round.coffee</string>
</dict>
</dict>
<key>comment</key>
<string>match stuff like: a -&gt;</string>
<key>match</key>
<string>(\([^()]*?\))\s*([=-]&gt;)</string>
<string>((\()([^()]*?)(\)))\s*([=-]&gt;)</string>
<key>name</key>
<string>meta.inline.function.coffee</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>function.jQuery.binder.coffee</string>
</dict>
</dict>
<key>comment</key>
<string>match jQuery event binders (.on, .off)</string>
<key>match</key>
<string>\.(on|off)\b</string>
</dict>
<dict>
<key>captures</key>
<dict>
Expand Down Expand Up @@ -517,6 +541,20 @@
<key>name</key>
<string>meta.delimiter.method.period.coffee</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.property.js</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;=\.)\s*[_$a-zA-Z][$\w]*</string>
<key>name</key>
<string>meta.property.object.coffee</string>
</dict>
<dict>
<key>match</key>
<string>\{|\}</string>
Expand Down

0 comments on commit 636cf85

Please sign in to comment.