mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-16 11:13:01 +08:00
Merge pull request #638 from jrc2139/dart-ctags
This commit is contained in:
commit
b63e8cb83f
|
@ -248,26 +248,45 @@ function! s:InitTypes() abort
|
|||
let type_dart = tagbar#prototypes#typeinfo#new()
|
||||
let type_dart.ctagstype = 'dart'
|
||||
let type_dart.kinds = [
|
||||
\ {'short' : 'i', 'long' : 'imports', 'fold' : 1, 'stl' : 0},
|
||||
\ {'short' : 'C', 'long' : 'consts', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'F', 'long' : 'functions', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'l', 'long' : 'library', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 't', 'long' : 'export', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'i', 'long' : 'imports', 'fold' : 1, 'stl' : 0},
|
||||
\ {'short' : 'D', 'long' : 'dart', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'U', 'long' : 'pub', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'L', 'long' : 'local', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'P', 'long' : 'part', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'p', 'long' : 'part of', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'C', 'long' : 'consts', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'F', 'long' : 'functions', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'E', 'long' : 'enums', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'e', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'x', 'long' : 'mixins', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'd', 'long' : 'extends', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'w', 'long' : 'with', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'z', 'long' : 'implements', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'r', 'long' : 'constructors', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'a', 'long' : 'abstract functions', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'f', 'long' : 'fields', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'M', 'long' : 'static methods', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'r', 'long' : 'constructors', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'o', 'long' : 'operators', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'g', 'long' : 'getters', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 's', 'long' : 'setters', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'a', 'long' : 'abstract functions', 'fold' : 0, 'stl' : 0},
|
||||
\ ]
|
||||
\ {'short' : 'o', 'long' : 'operators', 'fold' : 0, 'stl' : 0},
|
||||
\ ]
|
||||
let type_dart.sro = ':'
|
||||
let type_dart.kind2scope = {
|
||||
\ 'c' : 'class'
|
||||
\ 'c' : 'class',
|
||||
\ 'E' : 'enum',
|
||||
\ 'x' : 'mixin',
|
||||
\ 'i' : 'directive'
|
||||
\ }
|
||||
let type_dart.scope2kind = {
|
||||
\ 'class' : 'c'
|
||||
\ 'class' : 'c',
|
||||
\ 'enum' : 'E',
|
||||
\ 'mixin' : 'x',
|
||||
\ 'directive' : 'i'
|
||||
\ }
|
||||
let type_dart.ctagsbin = dart_ctags
|
||||
let type_dart.ctagsargs = '-l'
|
||||
|
|
Loading…
Reference in New Issue
Block a user