From 21f8d04b76e7a5d77cb25b66313939e6cfaf5416 Mon Sep 17 00:00:00 2001 From: irpsv Date: Tue, 19 Sep 2017 21:30:56 +0500 Subject: [PATCH 1/2] Add PHP trait & namespace regexp --- lib/.ctags | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/.ctags b/lib/.ctags index 0ad805f..aca85ea 100644 --- a/lib/.ctags +++ b/lib/.ctags @@ -60,6 +60,8 @@ --langmap=Ruby:+(Rakefile) --langmap=Php:+.module +--regex-Php=/^namespace[ \t]+([A-Za-z0-9\\]+);/\1/n,namespace/ +--regex-Php=/^trait[ \t]+([A-Za-z0-9\_]+)/\1/c,trait/ --langdef=Go --langmap=Go:.go From 9fd9d73ed579c4c8424b6575dc84dee248bbbd77 Mon Sep 17 00:00:00 2001 From: irpsv Date: Tue, 19 Sep 2017 21:33:22 +0500 Subject: [PATCH 2/2] Add PHP trait & namespace regexp --- lib/.ctags | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/.ctags b/lib/.ctags index aca85ea..32c93e7 100644 --- a/lib/.ctags +++ b/lib/.ctags @@ -60,8 +60,8 @@ --langmap=Ruby:+(Rakefile) --langmap=Php:+.module ---regex-Php=/^namespace[ \t]+([A-Za-z0-9\\]+);/\1/n,namespace/ ---regex-Php=/^trait[ \t]+([A-Za-z0-9\_]+)/\1/c,trait/ +--regex-Php=/^[ \t]*namespace[ \t]+([A-Za-z0-9\\]+);/\1/n,namespace/ +--regex-Php=/^[ \t]*trait[ \t]+([A-Za-z0-9\_]+)/\1/c,trait/ --langdef=Go --langmap=Go:.go