Skip to content

Commit

Permalink
Merge branch 'wdv4758h-rust'
Browse files Browse the repository at this point in the history
Closes #395
Closes #284
  • Loading branch information
majutsushi committed Aug 22, 2017
2 parents 817d8a6 + c6c8800 commit 59ea6d6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions autoload/tagbar/types/uctags.vim
Expand Up @@ -528,6 +528,43 @@ function! tagbar#types#uctags#init(supported_types) abort
\ 'module' : 'm'
\ }
let types.ruby = type_ruby
" Rust {{{1
let type_rust = tagbar#prototypes#typeinfo#new()
let type_rust.ctagstype = 'rust'
let type_rust.kinds = [
\ {'short' : 'n', 'long' : 'module', 'fold' : 1, 'stl' : 0},
\ {'short' : 's', 'long' : 'struct', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'trait', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'implementation', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'function', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'enum', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'type alias', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'global variable', 'fold' : 0, 'stl' : 1},
\ {'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}
\ ]
let type_rust.sro = '::'
let type_rust.kind2scope = {
\ 'n' : 'module',
\ 's' : 'struct',
\ 'i' : 'interface',
\ 'c' : 'implementation',
\ 'f' : 'function',
\ 'g' : 'enum',
\ 'F' : 'method',
\ }
let type_rust.scope2kind = {
\ 'module' : 'n',
\ 'struct' : 's',
\ 'interface' : 'i',
\ 'implementation': 'c',
\ 'function' : 'f',
\ 'enum' : 'g',
\ 'method' : 'F',
\ }
let types.rust = type_rust
" Scheme {{{1
let type_scheme = tagbar#prototypes#typeinfo#new()
let type_scheme.ctagstype = 'scheme'
Expand Down

0 comments on commit 59ea6d6

Please sign in to comment.