1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Merge branch 'weirdan-php-scopes'

This commit is contained in:
Jan Larres
2017-08-20 18:07:53 +12:00

View File

@@ -426,13 +426,29 @@ function! tagbar#types#uctags#init(supported_types) abort
let type_php = tagbar#prototypes#typeinfo#new()
let type_php.ctagstype = 'php'
let type_php.kinds = [
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'n', 'long' : 'namespaces', 'fold' : 0, 'stl' : 0},
\ {'short' : 'a', 'long' : 'use aliases', 'fold' : 1, 'stl' : 0},
\ {'short' : 'd', 'long' : 'constant definitions', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'traits', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 1, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'j', 'long' : 'javascript functions', 'fold' : 0, 'stl' : 1}
\ {'short' : 'j', 'long' : 'javascript functions', 'fold' : 0, 'stl' : 1},
\ ]
let type_php.sro = '\\\\'
let type_php.kind2scope = {
\ 'c' : 'class',
\ 'n' : 'namespace',
\ 'i' : 'interface',
\ 't' : 'trait',
\ }
let type_php.scope2kind = {
\ 'class' : 'c',
\ 'namespace' : 'n',
\ 'interface' : 'i',
\ 'trait' : 't',
\ }
let types.php = type_php
" Python {{{1
let type_python = tagbar#prototypes#typeinfo#new()