# HG changeset patch # User Meredith Howard # Date 1478587459 18000 # Node ID 0c95a57f444d16f243c2258cdc83565e8cfd0c8c # Parent e5a38021ed8b09d398cfd4f284a43520242a03bb Remove stuff from general ctags that makes tag jumping harder diff --git a/.ctags b/.ctags --- a/.ctags +++ b/.ctags @@ -4,21 +4,7 @@ --exclude=*min.js --langmap=perl:+.pod ---regex-perl=/^\s*with[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/w,role,roles/ ---regex-perl=/^\s*extends[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ ---regex-perl=/^\s*use[ \t]+base[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ ---regex-perl=/^\s*use[ \t]+parent[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ ---regex-perl=/^\s*use[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/u,use,uses/ ---regex-perl=/^\s*require[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/r,require,requires/ --regex-perl=/^\s*has[ \t]+['"]*([A-Za-z_+][A-Za-z0-9_]+)['"]*[ \t]+/\1/a,attribute,attributes/ ---regex-perl=/^\s*around[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['"]*[ \t]+/\1/x,around/ ---regex-perl=/^\s*\*([A-Za-z_][A-Za-z0-9:_]+)[ \t]+=/\1/l,alias,aliases/ ---regex-perl=/^\s*our[ \t]+([\$@%][A-Za-z_][A-Za-z0-9_]+)/\1/o,our,ours/ ---regex-perl=/^\s*use[ \t]+constant[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['" \t]*/\1/c,constants/ ---regex-perl=/^\=head1[ \t]+(.+)/- \1/d,pod,Plain Old Documentation/ ---regex-perl=/^\=head2[ \t]+(.+)/-- \1/d,pod,Plain Old Documentation/ ---regex-perl=/^\=head[3-5][ \t]+(.+)/--- \1/d,pod,Plain Old Documentation/ - --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/ diff --git a/.vim/ctags/perl.cnf b/.vim/ctags/perl.cnf new file mode 100644 --- /dev/null +++ b/.vim/ctags/perl.cnf @@ -0,0 +1,15 @@ +--langmap=perl:+.pod +--regex-perl=/^\s*\*([A-Za-z_][A-Za-z0-9:_]+)[ \t]+=/\1/l,alias,aliases/ +--regex-perl=/^\s*our[ \t]+([\$@%][A-Za-z_][A-Za-z0-9_]+)/\1/o,our,ours/ +--regex-perl=/^\s*use[ \t]+constant[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['" \t]*/\1/c,constants/ +--regex-perl=/^\s*with[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/w,role,roles/ +--regex-perl=/^\s*extends[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ +--regex-perl=/^\s*use[ \t]+base[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ +--regex-perl=/^\s*use[ \t]+parent[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ +--regex-perl=/^\s*use[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/u,use,uses/ +--regex-perl=/^\s*require[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/r,require,requires/ +--regex-perl=/^\s*around[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['"]*[ \t]+/\1/x,around/ +--regex-perl=/^\=head1[ \t]+(.+)/- \1/d,pod,Plain Old Documentation/ +--regex-perl=/^\=head2[ \t]+(.+)/-- \1/d,pod,Plain Old Documentation/ +--regex-perl=/^\=head[3-5][ \t]+(.+)/--- \1/d,pod,Plain Old Documentation/ + diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -425,6 +425,7 @@ let g:tagbar_type_perl = { \ 'l:aliases', \ 'd:pod:1:0', \ ], + \ 'deffile' : '$MYVIM/ctags/perl.cnf' \ } let g:tagbar_type_elixir = {