# HG changeset patch # User Meredith Howard # Date 1448992335 28800 # Node ID 494ac568f07fdb2336e321b849f5bcaf54018aea # Parent 5cd77842c6231d7b128dcb4d34eca34aa5112363 avoid false negatives in tags diff --git a/.ctags b/.ctags --- 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/ diff --git a/.vim/ctags/perl.cnf b/.vim/ctags/perl.cnf --- 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/