forked from jsallis/nu.tmbundle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show class and instance methods in symbol list
- Loading branch information
1 parent
1a39136
commit 70df11c
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters