Skip to content

Commit

Permalink
Show classes, functions and well-known method calls in Go To Symbols …
Browse files Browse the repository at this point in the history
…panel
  • Loading branch information
ashtuchkin committed Oct 23, 2012
1 parent f7cc700 commit 0be6606
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/package-metadata.json
*.pyc
*.cache
*.sublime-project
Expand Down
25 changes: 18 additions & 7 deletions CoffeeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<key>2</key>
<dict>
<key>name</key>
<string>entity.name.type.instance.coffee</string>
<string>support.class.coffee</string>
</dict>
</dict>
<key>match</key>
Expand Down Expand Up @@ -348,6 +348,23 @@
<key>name</key>
<string>meta.function.coffee</string>
</dict>
<dict>
<key>comment</key>
<string>Show well-known functions from Express and Mocha in Go To Symbol view</string>
<key>name</key>
<string>meta.function.symbols.coffee</string>
<key>begin</key>
<string>^\s*(describe|it|app\.(get|post|put|all|del|delete))</string>
<key>end</key>
<string>$</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>$self</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>[=-]&gt;</string>
Expand Down Expand Up @@ -424,12 +441,6 @@
<key>name</key>
<string>support.class.coffee</string>
</dict>
<dict>
<key>match</key>
<string>\b(console)\b</string>
<key>name</key>
<string>entity.name.type.object.coffee</string>
</dict>
<dict>
<key>match</key>
<string>((?&lt;=console\.)(debug|warn|info|log|error|time|timeEnd|assert))\b</string>
Expand Down
17 changes: 17 additions & 0 deletions Symbol List.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>source.coffee meta.class.coffee, meta.function</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
</dict>
<key>uuid</key>
<string>C02A31C1-E770-472F-A13E-358FF1C6AD89</string>
</dict>
</plist>

0 comments on commit 0be6606

Please sign in to comment.