File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ --langdef =swift
2
+ --langmap =swift:.swift
3
+ --regex-swift =/[[:<:]]class[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/c,class/
4
+ --regex-swift =/[[:<:]]enum[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/e,enum/
5
+ --regex-swift =/[[:<:]]func[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/f,function/
6
+ --regex-swift =/[[:<:]]protocol[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/P,protocol/
7
+ --regex-swift =/[[:<:]]struct[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/s,struct/
8
+ --regex-swift =/[[:<:]]extension[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/E,extension/
9
+ --regex-swift =/[[:<:]]typealias[[:>:]][[:space:]]+([[:alnum:]_]+)/\1/t,typealias/
Original file line number Diff line number Diff line change
1
+ let g: tagbar_type_swift = {
2
+ \ ' ctagstype' : ' swift' ,
3
+ \ ' kinds' : [
4
+ \ ' P:protocol' ,
5
+ \ ' c:class' ,
6
+ \ ' s:struct' ,
7
+ \ ' e:enum' ,
8
+ \ ' E:extension' ,
9
+ \ ' f:function' ,
10
+ \ ' t:typealias'
11
+ \ ],
12
+ \ ' sort' : 0 ,
13
+ \ ' deffile' : expand (' <sfile>:p:h:h' ) . ' /ctags/swift.cnf'
14
+ \ }
You can’t perform that action at this time.
0 commit comments