Skip to content

Commit

Permalink
Show class and instance methods in symbol list
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewschleifer committed Feb 15, 2011
1 parent 1a39136 commit 70df11c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Preferences/Symbol List.plist
@@ -0,0 +1,24 @@
<?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: Method</string>
<key>scope</key>
<string>meta.function.nu</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/^\(//; # strip leading parentheses
s/^(\-|\+|imethod|cmethod)\s*\(.*?\)\s*/ $2 /; # strip return type
s/:(\s*\(.*?\))?\s*\w+\s*/:/g; # strip argument variables
s/is(\Z|\s|\)).*//g; # strip terminating keyword
</string>
</dict>
<key>uuid</key>
<string>46E9A54F-5D93-4002-8DF7-86C36C0CE0FD</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions info.plist
Expand Up @@ -253,6 +253,7 @@
<string>61BF925A-71FD-499A-9A1B-D4B407116062</string> <string>61BF925A-71FD-499A-9A1B-D4B407116062</string>
<string>6AC5F301-9421-4C34-A14B-848205EDD633</string> <string>6AC5F301-9421-4C34-A14B-848205EDD633</string>
<string>EAA5B245-8BC3-4D47-8B3D-FFF6D9C81AFA</string> <string>EAA5B245-8BC3-4D47-8B3D-FFF6D9C81AFA</string>
<string>46E9A54F-5D93-4002-8DF7-86C36C0CE0FD</string>
<string>82E4152A-57BA-476F-9FC1-83920DFE2ADD</string> <string>82E4152A-57BA-476F-9FC1-83920DFE2ADD</string>
<string>CD9FF10E-B2AD-446C-8580-B050643473CF</string> <string>CD9FF10E-B2AD-446C-8580-B050643473CF</string>
<string>5092D366-FCA7-4EAF-88B9-B6DDCA942938</string> <string>5092D366-FCA7-4EAF-88B9-B6DDCA942938</string>
Expand Down

0 comments on commit 70df11c

Please sign in to comment.