From f9012df43bb030c2e83606a53b3ac983c0f38012 Mon Sep 17 00:00:00 2001 From: diegok Date: Tue, 20 Oct 2020 11:11:29 +0200 Subject: [PATCH 1/2] Add missing attributes and methods kinds on perl type --- autoload/tagbar/types/ctags.vim | 4 +++- autoload/tagbar/types/uctags.vim | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/tagbar/types/ctags.vim b/autoload/tagbar/types/ctags.vim index e225f13..a4f5a4e 100644 --- a/autoload/tagbar/types/ctags.vim +++ b/autoload/tagbar/types/ctags.vim @@ -466,9 +466,11 @@ function! tagbar#types#ctags#init(supported_types) abort let type_perl.kinds = [ \ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0}, \ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'a', 'long' : 'attributes', 'fold' : 0, 'stl' : 0}, \ {'short' : 'f', 'long' : 'formats', 'fold' : 0, 'stl' : 0}, \ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}, - \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1} + \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1}, + \ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1} \ ] let types.perl = type_perl " PHP {{{1 diff --git a/autoload/tagbar/types/uctags.vim b/autoload/tagbar/types/uctags.vim index 64ca29f..58fe65d 100644 --- a/autoload/tagbar/types/uctags.vim +++ b/autoload/tagbar/types/uctags.vim @@ -717,9 +717,11 @@ function! tagbar#types#uctags#init(supported_types) abort let type_perl.kinds = [ \ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0}, \ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0}, + \ {'short' : 'a', 'long' : 'attributes', 'fold' : 0, 'stl' : 0}, \ {'short' : 'f', 'long' : 'formats', 'fold' : 0, 'stl' : 0}, \ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}, - \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1} + \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1}, + \ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1} \ ] let types.perl = type_perl " Perl 6 {{{1 From 353701eb8c1949e879c7190505c0efec7fdd06a9 Mon Sep 17 00:00:00 2001 From: diegok Date: Tue, 20 Oct 2020 12:01:37 +0200 Subject: [PATCH 2/2] Undone changes on legacy exuberant-ctags types file --- autoload/tagbar/types/ctags.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/tagbar/types/ctags.vim b/autoload/tagbar/types/ctags.vim index a4f5a4e..e225f13 100644 --- a/autoload/tagbar/types/ctags.vim +++ b/autoload/tagbar/types/ctags.vim @@ -466,11 +466,9 @@ function! tagbar#types#ctags#init(supported_types) abort let type_perl.kinds = [ \ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0}, \ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0}, - \ {'short' : 'a', 'long' : 'attributes', 'fold' : 0, 'stl' : 0}, \ {'short' : 'f', 'long' : 'formats', 'fold' : 0, 'stl' : 0}, \ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}, - \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1}, - \ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1} + \ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1} \ ] let types.perl = type_perl " PHP {{{1