pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/MagicStack/MagicPython/commit/68c88ccfc21bc720e8e17137672d4c29b716cbd3

" /> Tweak symbol list. · MagicStack/MagicPython@68c88cc · GitHub
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

settings/sublime/Symbol List.tmPreferences

Lines changed: 8 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy