Skip to content

Commit 68c88cc

Browse files
committed
Tweak symbol list.
Elide arguments for extra long function definitions.
1 parent cba112e commit 68c88cc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: settings/sublime/Symbol List.tmPreferences

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# transform into 'class Classname' form
1616
s/(class)\s+([[:alpha:]_]\w*)\s*.*/$1 $2/g;
1717
18-
# transform into '[async] funciton_name(args,...)' form
18+
# transform into '[async] funciton_name(args,...)' long form
1919
s/(?x)
2020
def \s+
2121
([[:alpha:]_]\w*) \s* \(
@@ -24,6 +24,13 @@
2424
2525
# remove extra whitespace in arg list (except leading)
2626
s/(\S)\s{2,}/$1 /g;
27+
28+
# transform into short form
29+
s/(?x)
30+
(class\s|async\s)? (\w+\()
31+
(.{80})(.+)
32+
(\))$
33+
/$1$2$3\.\.\.$5/g;
2734
</string>
2835
</dict>
2936
<key>uuid</key>

0 commit comments

Comments
 (0)