| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cba112e commit 68c88cc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | # transform into 'class Classname' form | |
| 16 | 16 | s/(class)\s+([[:alpha:]_]\w*)\s*.*/$1 $2/g; | |
| 17 | 17 | ||
| 18 | - # transform into '[async] funciton_name(args,...)' form | ||
| 18 | + # transform into '[async] funciton_name(args,...)' long form | ||
| 19 | 19 | s/(?x) | |
| 20 | 20 | def \s+ | |
| 21 | 21 | ([[:alpha:]_]\w*) \s* \( | |
@@ -24,6 +24,13 @@ | |||
| 24 | 24 | ||
| 25 | 25 | # remove extra whitespace in arg list (except leading) | |
| 26 | 26 | 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; | ||
| 27 | 34 | </string> | |
| 28 | 35 | </dict> | |
| 29 | 36 | <key>uuid</key> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments