.ctags

Sun, 06 Sep 2015 21:20:23 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 06 Sep 2015 21:20:23 -0400
changeset 199
ecaa41f32b07
parent 183
24804a083693
child 225
5b91792c70ba
permissions
-rw-r--r--

Add ctags-hook helper

181
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 --extra=+q
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 --exclude=*min.js
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
183
24804a083693 add regex to pick up foo => sub { style definitions
Meredith Howard <mhoward@roomag.org>
parents: 181
diff changeset
4 --regex-perl=/['"]?([0-9a-zA-Z_]+)['"]?\s+(,|=>)\s+sub\s+[{(]/\1/s,subroutines/
181
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 --regex-perl=/^\s*extends\s+(['"])(.+)\1/\2/e,extends/
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 --regex-perl=/^\s*with\s+(['"])(.+)\1/\2/r,role/
83459cf3d815 add .ctags
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 --regex-perl=/^\s*has\s+['"]?([0-9a-zA-Z_]+)/\1/a,attributes/

mercurial