From 2f6895708dbade1e1b7f27bbae977d6610ad42f8 Mon Sep 17 00:00:00 2001 From: Mark Wu Date: Tue, 14 May 2013 16:23:38 +0800 Subject: [PATCH 1/3] Add namespace and trait support --- plugin/tagbar-phpctags.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugin/tagbar-phpctags.vim b/plugin/tagbar-phpctags.vim index c5d7d6a..c7f87c9 100644 --- a/plugin/tagbar-phpctags.vim +++ b/plugin/tagbar-phpctags.vim @@ -24,19 +24,25 @@ let g:tagbar_type_php = { \ 'i:Interfaces:0', \ 'c:Classes:0', \ 'p:Properties:0:0', - \ 'm:Methods:1' + \ 'm:Methods:1', + \ 'n:Namespaces:0', + \ 't:Traits:0', \ ], \ 'sro' : '::', \ 'kind2scope' : { \ 'c' : 'class', \ 'm' : 'method', \ 'f' : 'function', - \ 'i' : 'interface' + \ 'i' : 'interface', + \ 'n' : 'namespace', + \ 't' : 'trait', \ }, \ 'scope2kind' : { \ 'class' : 'c', \ 'method' : 'm', \ 'function' : 'f', - \ 'interface' : 'i' + \ 'interface' : 'i', + \ 'namespace' : 'n', + \ 'trait' : 't', \ } \ } From a73ac8ecd3d43aa65ece1067ef7a0e19cf97d8a9 Mon Sep 17 00:00:00 2001 From: Techlive Zheng Date: Mon, 24 Jun 2013 17:50:51 +0800 Subject: [PATCH 2/3] Support phpctags v0.5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9e6abd..d19b23d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ source := README.md \ bin/phpctags \ plugin/tagbar-phpctags.vim -version := 0.4.2 +version := 0.5 .PHONY: all all: bin/phpctags From e9f7b6b066e22bbb5ff876b625d18a8e583c0828 Mon Sep 17 00:00:00 2001 From: Techlive Zheng Date: Mon, 24 Jun 2013 17:51:43 +0800 Subject: [PATCH 3/3] Update ChangeLog --- ChangeLog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 085f208..60d4c66 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,8 @@ +Version 0.5 +----------- + +* work with phpctags v0.5 + Version 0.4.2 -------------