avoid false negatives in tags

Tue, 01 Dec 2015 09:52:15 -0800

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 01 Dec 2015 09:52:15 -0800
changeset 231
494ac568f07f
parent 230
5cd77842c623
child 232
986451375fb3

avoid false negatives in tags

.ctags file | annotate | diff | comparison | revisions
.vim/ctags/perl.cnf file | annotate | diff | comparison | revisions
--- a/.ctags
+++ b/.ctags
@@ -1,8 +1,8 @@
 --extra=+q
 --exclude=*min.js
 
---regex-perl=/^\s*fun +([0-9a-zA-Z_]+)/\1/s,subroutines/
---regex-perl=/^\s*method +([0-9a-zA-Z_]+)/\1/m,methods/
+--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/
--- a/.vim/ctags/perl.cnf
+++ b/.vim/ctags/perl.cnf
@@ -1,5 +1,5 @@
---regex-perl=/^\s*fun +([0-9a-zA-Z_]+)/\1/s,subroutines/
---regex-perl=/^\s*method +([0-9a-zA-Z_]+)/\1/m,methods/
+--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/

mercurial