add regex to pick up foo => sub { style definitions

Sat, 18 Apr 2015 19:13:12 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 18 Apr 2015 19:13:12 -0400
changeset 183
24804a083693
parent 182
5a18e80bf2ea
child 184
ddb5e993a367

add regex to pick up foo => sub { style definitions

.ctags file | annotate | diff | comparison | revisions
--- a/.ctags
+++ b/.ctags
@@ -1,6 +1,7 @@
 --extra=+q
 --exclude=*min.js
 
+--regex-perl=/['"]?([0-9a-zA-Z_]+)['"]?\s+(,|=>)\s+sub\s+[{(]/\1/s,subroutines/
 --regex-perl=/^\s*extends\s+(['"])(.+)\1/\2/e,extends/
 --regex-perl=/^\s*with\s+(['"])(.+)\1/\2/r,role/
 --regex-perl=/^\s*has\s+['"]?([0-9a-zA-Z_]+)/\1/a,attributes/

mercurial