Add ctags matches for fun and method

Wed, 25 Nov 2015 16:37:33 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 25 Nov 2015 16:37:33 -0500
changeset 230
5cd77842c623
parent 229
0aefc3566070
child 231
494ac568f07f

Add ctags matches for fun and method

.ctags file | annotate | diff | comparison | revisions
.vim/ctags/perl.cnf file | annotate | diff | comparison | revisions
.vimrc file | annotate | diff | comparison | revisions
--- a/.ctags
+++ b/.ctags
@@ -1,7 +1,9 @@
 --extra=+q
 --exclude=*min.js
 
---regex-perl=/['"]?([0-9a-zA-Z_]+)['"]?\s+(,|=>)\s+sub\s+[{(]/\1/s,subroutines/
+--regex-perl=/^\s*fun +([0-9a-zA-Z_]+)/\1/s,subroutines/
+--regex-perl=/^\s*method +([0-9a-zA-Z_]+)/\1/m,methods/
+--regex-perl=/(['"]?)([0-9a-zA-Z_]+)\1\s+(,|=>)\s+sub\s+[{(]/\2/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/
--- a/.vim/ctags/perl.cnf
+++ b/.vim/ctags/perl.cnf
@@ -1,3 +1,6 @@
+--regex-perl=/^\s*fun +([0-9a-zA-Z_]+)/\1/s,subroutines/
+--regex-perl=/^\s*method +([0-9a-zA-Z_]+)/\1/m,methods/
+--regex-perl=/(['"]?)([0-9a-zA-Z_]+)\1\s+(,|=>)\s+sub\s+[{(]/\2/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/
--- a/.vimrc
+++ b/.vimrc
@@ -343,6 +343,7 @@ let g:tagbar_type_perl = {
         \ 'c:constants:0:0',
         \ 'f:formats:0:0',
         \ 'a:attributes',
+        \ 'm:methods',
         \ 's:subroutines',
         \ 'l:labels',
     \ ],

mercurial