1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Merge pull request #458 from ithinuel/master

Rust: fix method kind from F to P for universal-ctags
This commit is contained in:
Jan Larres
2017-12-03 15:28:06 +13:00
committed by GitHub

View File

@@ -796,7 +796,7 @@ function! tagbar#types#uctags#init(supported_types) abort
\ {'short' : 'M', 'long' : 'macro', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'struct field', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enum variant', 'fold' : 0, 'stl' : 1},
\ {'short' : 'F', 'long' : 'method', 'fold' : 0, 'stl' : 1}
\ {'short' : 'P', 'long' : 'method', 'fold' : 0, 'stl' : 1}
\ ]
let type_rust.sro = '::'
let type_rust.kind2scope = {
@@ -806,7 +806,7 @@ function! tagbar#types#uctags#init(supported_types) abort
\ 'c' : 'implementation',
\ 'f' : 'function',
\ 'g' : 'enum',
\ 'F' : 'method',
\ 'P' : 'method',
\ }
let type_rust.scope2kind = {
\ 'module' : 'n',
@@ -815,7 +815,7 @@ function! tagbar#types#uctags#init(supported_types) abort
\ 'implementation': 'c',
\ 'function' : 'f',
\ 'enum' : 'g',
\ 'method' : 'F',
\ 'method' : 'P',
\ }
let types.rust = type_rust
" Scheme {{{1