/
uctags.vim
1382 lines (1374 loc) · 64.2 KB
/
uctags.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
" Type definitions for Universal Ctags
function! tagbar#types#uctags#init(supported_types) abort
let types = {}
" Ada {{{1
let type_ada = tagbar#prototypes#typeinfo#new()
let type_ada.ctagstype = 'ada'
let type_ada.kinds = [
\ {'short' : 'P', 'long' : 'package specifications', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'packages', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'subtypes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'record type components', 'fold' : 0, 'stl' : 1},
\ {'short' : 'l', 'long' : 'enum type literals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'generic formal parameters', 'fold' : 0, 'stl' : 0},
\ {'short' : 'n', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'x', 'long' : 'user defined exceptions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'R', 'long' : 'subprogram specifications', 'fold' : 0, 'stl' : 1},
\ {'short' : 'r', 'long' : 'subprograms', 'fold' : 0, 'stl' : 1},
\ {'short' : 'K', 'long' : 'task specifications', 'fold' : 0, 'stl' : 1},
\ {'short' : 'k', 'long' : 'tasks', 'fold' : 0, 'stl' : 1},
\ {'short' : 'O', 'long' : 'protected data specifications', 'fold' : 0, 'stl' : 1},
\ {'short' : 'o', 'long' : 'protected data', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'task/protected data entries', 'fold' : 0, 'stl' : 1},
\ {'short' : 'b', 'long' : 'labels', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'loop/declare identifiers', 'fold' : 0, 'stl' : 1},
\ ]
let type_ada.sro = '.' " Not sure if possible
let type_ada.kind2scope = {
\ 'P' : 'packspec',
\ 't' : 'type',
\ }
let type_ada.scope2kind = {
\ 'packspec' : 'P',
\ 'type' : 't',
\ }
let types.ada = type_ada
" Ant {{{1
let type_ant = tagbar#prototypes#typeinfo#new()
let type_ant.ctagstype = 'ant'
let type_ant.kinds = [
\ {'short' : 'p', 'long' : 'projects', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'antfiles', 'fold' : 0, 'stl' : 0},
\ {'short' : 'P', 'long' : 'properties', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'targets', 'fold' : 0, 'stl' : 1}
\ ]
let types.ant = type_ant
" Asciidoc {{{1
let type_asciidoc = tagbar#prototypes#typeinfo#new()
let type_asciidoc.ctagstype = 'asciidoc'
let type_asciidoc.kinds = [
\ {'short' : 'c', 'long' : 'chapter', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'section', 'fold' : 0, 'stl' : 1},
\ {'short' : 'S', 'long' : 'subsection', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'subsubsection', 'fold' : 0, 'stl' : 1},
\ {'short' : 'T', 'long' : 'paragraph', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'subparagraph', 'fold' : 0, 'stl' : 1},
\ {'short' : 'a', 'long' : 'anchor', 'fold' : 0, 'stl' : 0}
\ ]
let type_asciidoc.sro = '""'
let type_asciidoc.kind2scope = {
\ 'c' : 'chapter',
\ 's' : 'section',
\ 'S' : 'subsection',
\ 't' : 'subsubsection',
\ 'T' : 'l4subsection',
\ 'u' : 'l5subsection'
\ }
let type_asciidoc.scope2kind = {
\ 'chapter' : 'c',
\ 'section' : 's',
\ 'subsection' : 'S',
\ 'subsubsection' : 't',
\ 'l4subsection' : 'T',
\ 'l5subsection' : 'u'
\ }
let type_asciidoc.sort = 0
let types.asciidoc = type_asciidoc
" Asm {{{1
let type_asm = tagbar#prototypes#typeinfo#new()
let type_asm.ctagstype = 'asm'
let type_asm.kinds = [
\ {'short' : 'm', 'long' : 'macros', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'sections', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'defines', 'fold' : 0, 'stl' : 1},
\ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}
\ ]
let types.asm = type_asm
" ASP {{{1
let type_aspvbs = tagbar#prototypes#typeinfo#new()
let type_aspvbs.ctagstype = 'asp'
let type_aspvbs.kinds = [
\ {'short' : 'd', 'long' : 'constants', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 1}
\ ]
let types.aspvbs = type_aspvbs
" Asymptote {{{1
" Asymptote gets parsed well using filetype = c
let type_asy = tagbar#prototypes#typeinfo#new()
let type_asy.ctagstype = 'c'
let type_asy.kinds = [
\ {'short' : 'd', 'long' : 'macros', 'fold' : 1, 'stl' : 0},
\ {'short' : 'p', 'long' : 'prototypes', 'fold' : 1, 'stl' : 0},
\ {'short' : 'g', 'long' : 'enums', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'typedefs', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'unions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'members', 'fold' : 0, 'stl' : 0},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let type_asy.sro = '::'
let type_asy.kind2scope = {
\ 'g' : 'enum',
\ 's' : 'struct',
\ 'u' : 'union'
\ }
let type_asy.scope2kind = {
\ 'enum' : 'g',
\ 'struct' : 's',
\ 'union' : 'u'
\ }
let types.asy = type_asy
" Autoconf {{{1
let type_autoconf = tagbar#prototypes#typeinfo#new()
let type_autoconf.ctagstype = 'autoconf'
let type_autoconf.kinds = [
\ {'short': 'p', 'long': 'packages', 'fold': 0, 'stl': 1},
\ {'short': 't', 'long': 'templates', 'fold': 0, 'stl': 1},
\ {'short': 'm', 'long': 'autoconf macros', 'fold': 0, 'stl': 1},
\ {'short': 'w', 'long': '"with" options', 'fold': 0, 'stl': 1},
\ {'short': 'e', 'long': '"enable" options', 'fold': 0, 'stl': 1},
\ {'short': 's', 'long': 'substitution keys', 'fold': 0, 'stl': 1},
\ {'short': 'c', 'long': 'automake conditions', 'fold': 0, 'stl': 1},
\ {'short': 'd', 'long': 'definitions', 'fold': 0, 'stl': 1},
\ ]
let types.config = type_autoconf
" Automake {{{1
let type_automake = tagbar#prototypes#typeinfo#new()
let type_automake.ctagstype = 'automake'
let type_automake.kinds = [
\ {'short' : 'I', 'long' : 'makefiles', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'directories', 'fold' : 0, 'stl' : 1},
\ {'short' : 'P', 'long' : 'programs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'M', 'long' : 'manuals', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'macros', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'targets', 'fold' : 0, 'stl' : 1},
\ {'short' : 'T', 'long' : 'ltlibraries', 'fold' : 0, 'stl' : 1},
\ {'short' : 'L', 'long' : 'libraries', 'fold' : 0, 'stl' : 1},
\ {'short' : 'S', 'long' : 'scripts', 'fold' : 0, 'stl' : 1},
\ {'short' : 'D', 'long' : 'datum', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'conditions', 'fold' : 0, 'stl' : 1},
\ ]
let types.automake = type_automake
" Awk {{{1
let type_awk = tagbar#prototypes#typeinfo#new()
let type_awk.ctagstype = 'awk'
let type_awk.kinds = [
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let types.awk = type_awk
" Basic {{{1
let type_basic = tagbar#prototypes#typeinfo#new()
let type_basic.ctagstype = 'basic'
let type_basic.kinds = [
\ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'enumerations', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 1}
\ ]
let types.basic = type_basic
" BETA {{{1
let type_beta = tagbar#prototypes#typeinfo#new()
let type_beta.ctagstype = 'beta'
let type_beta.kinds = [
\ {'short' : 'f', 'long' : 'fragments', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'slots', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'patterns', 'fold' : 0, 'stl' : 1}
\ ]
let types.beta = type_beta
" BibTeX {{{1
let type_bibtex = tagbar#prototypes#typeinfo#new()
let type_bibtex.ctagstype = 'bibtex'
let type_bibtex.kinds = [
\ {'short' : 'a', 'long' : 'article', 'fold' : 0, 'stl' : 0},
\ {'short' : 'b', 'long' : 'book', 'fold' : 0, 'stl' : 0},
\ {'short' : 'B', 'long' : 'booklet', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'conference', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'inbook', 'fold' : 0, 'stl' : 0},
\ {'short' : 'I', 'long' : 'incollection', 'fold' : 0, 'stl' : 0},
\ {'short' : 'j', 'long' : 'inproceedings', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'manual', 'fold' : 0, 'stl' : 0},
\ {'short' : 'M', 'long' : 'mastersthesis', 'fold' : 0, 'stl' : 0},
\ {'short' : 'n', 'long' : 'misc', 'fold' : 0, 'stl' : 0},
\ {'short' : 'p', 'long' : 'phdthesis', 'fold' : 0, 'stl' : 0},
\ {'short' : 'P', 'long' : 'proceedings', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'string', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'techreport', 'fold' : 0, 'stl' : 0},
\ {'short' : 'u', 'long' : 'unpublished', 'fold' : 0, 'stl' : 0},
\ {'short' : 'A', 'long' : 'artworks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'C', 'long' : 'bibnotes', 'fold' : 0, 'stl' : 0},
\ {'short' : 'D', 'long' : 'bookinbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'E', 'long' : 'Booklets', 'fold' : 0, 'stl' : 0},
\ {'short' : 'G', 'long' : 'collections', 'fold' : 0, 'stl' : 0},
\ {'short' : 'H', 'long' : 'commentarys', 'fold' : 0, 'stl' : 0},
\ {'short' : 'J', 'long' : 'images', 'fold' : 0, 'stl' : 0},
\ {'short' : 'K', 'long' : 'interferences', 'fold' : 0, 'stl' : 0},
\ {'short' : 'L', 'long' : 'jurisdictions', 'fold' : 0, 'stl' : 0},
\ {'short' : 'N', 'long' : 'legals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'O', 'long' : 'letters', 'fold' : 0, 'stl' : 0},
\ {'short' : 'Q', 'long' : 'musics', 'fold' : 0, 'stl' : 0},
\ {'short' : 'R', 'long' : 'mvbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'S', 'long' : 'mvcollections', 'fold' : 0, 'stl' : 0},
\ {'short' : 'T', 'long' : 'mvproceedings', 'fold' : 0, 'stl' : 0},
\ {'short' : 'U', 'long' : 'mvreferences', 'fold' : 0, 'stl' : 0},
\ {'short' : 'V', 'long' : 'onlines', 'fold' : 0, 'stl' : 0},
\ {'short' : 'W', 'long' : 'patents', 'fold' : 0, 'stl' : 0},
\ {'short' : 'g', 'long' : 'performances', 'fold' : 0, 'stl' : 0},
\ {'short' : 'h', 'long' : 'periodicals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'k', 'long' : 'reviews', 'fold' : 0, 'stl' : 0},
\ {'short' : 'l', 'long' : 'sets', 'fold' : 0, 'stl' : 0},
\ {'short' : 'o', 'long' : 'suppbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'q', 'long' : 'suppperiodicals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'r', 'long' : 'thesis', 'fold' : 0, 'stl' : 0},
\ ]
let types.bibtex = type_bibtex
let types.bib = type_bibtex
" BibLaTex {{{1
let type_biblatex = tagbar#prototypes#typeinfo#new()
let type_biblatex.ctagstype = 'biblatex'
let type_biblatex.kinds = [
\ {'short' : 'A', 'long' : 'artworks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'B', 'long' : 'audios', 'fold' : 0, 'stl' : 0},
\ {'short' : 'C', 'long' : 'bibnotes', 'fold' : 0, 'stl' : 0},
\ {'short' : 'D', 'long' : 'bookinbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'E', 'long' : 'Booklets', 'fold' : 0, 'stl' : 0},
\ {'short' : 'G', 'long' : 'collections', 'fold' : 0, 'stl' : 0},
\ {'short' : 'H', 'long' : 'commentarys', 'fold' : 0, 'stl' : 0},
\ {'short' : 'I', 'long' : 'datasets', 'fold' : 0, 'stl' : 0},
\ {'short' : 'J', 'long' : 'images', 'fold' : 0, 'stl' : 0},
\ {'short' : 'K', 'long' : 'interferences', 'fold' : 0, 'stl' : 0},
\ {'short' : 'L', 'long' : 'jurisdictions', 'fold' : 0, 'stl' : 0},
\ {'short' : 'M', 'long' : 'legislations', 'fold' : 0, 'stl' : 0},
\ {'short' : 'N', 'long' : 'legals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'O', 'long' : 'letters', 'fold' : 0, 'stl' : 0},
\ {'short' : 'P', 'long' : 'movies', 'fold' : 0, 'stl' : 0},
\ {'short' : 'Q', 'long' : 'musics', 'fold' : 0, 'stl' : 0},
\ {'short' : 'R', 'long' : 'mvbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'S', 'long' : 'mvcollections', 'fold' : 0, 'stl' : 0},
\ {'short' : 'T', 'long' : 'mvproceedings', 'fold' : 0, 'stl' : 0},
\ {'short' : 'U', 'long' : 'mvreferences', 'fold' : 0, 'stl' : 0},
\ {'short' : 'V', 'long' : 'onlines', 'fold' : 0, 'stl' : 0},
\ {'short' : 'W', 'long' : 'patents', 'fold' : 0, 'stl' : 0},
\ {'short' : 'g', 'long' : 'performances', 'fold' : 0, 'stl' : 0},
\ {'short' : 'h', 'long' : 'periodicals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'references', 'fold' : 0, 'stl' : 0},
\ {'short' : 'j', 'long' : 'reports', 'fold' : 0, 'stl' : 0},
\ {'short' : 'k', 'long' : 'reviews', 'fold' : 0, 'stl' : 0},
\ {'short' : 'l', 'long' : 'sets', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'software', 'fold' : 0, 'stl' : 0},
\ {'short' : 'n', 'long' : 'standards', 'fold' : 0, 'stl' : 0},
\ {'short' : 'o', 'long' : 'suppbooks', 'fold' : 0, 'stl' : 0},
\ {'short' : 'p', 'long' : 'suppcollections', 'fold' : 0, 'stl' : 0},
\ {'short' : 'q', 'long' : 'suppperiodicals', 'fold' : 0, 'stl' : 0},
\ {'short' : 'r', 'long' : 'thesis', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'videos', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'xdatas', 'fold' : 0, 'stl' : 0},
\ ]
let types.biblatex = type_biblatex
" C {{{1
let type_c = tagbar#prototypes#typeinfo#new()
let type_c.ctagstype = 'c'
let type_c.kinds = [
\ {'short' : 'h', 'long' : 'header files', 'fold' : 1, 'stl' : 0},
\ {'short' : 'd', 'long' : 'macros', 'fold' : 1, 'stl' : 0},
\ {'short' : 'p', 'long' : 'prototypes', 'fold' : 1, 'stl' : 0},
\ {'short' : 'g', 'long' : 'enums', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'typedefs', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'unions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'members', 'fold' : 0, 'stl' : 0},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let type_c.sro = '::'
let type_c.kind2scope = {
\ 'g' : 'enum',
\ 's' : 'struct',
\ 'u' : 'union'
\ }
let type_c.scope2kind = {
\ 'enum' : 'g',
\ 'struct' : 's',
\ 'union' : 'u'
\ }
let types.c = type_c
let types.lpc = type_c
" C++ {{{1
let type_cpp = tagbar#prototypes#typeinfo#new()
let type_cpp.ctagstype = 'c++'
let type_cpp.kinds = [
\ {'short' : 'h', 'long' : 'header files', 'fold' : 1, 'stl' : 0},
\ {'short' : 'd', 'long' : 'macros', 'fold' : 1, 'stl' : 0},
\ {'short' : 'p', 'long' : 'prototypes', 'fold' : 1, 'stl' : 0},
\ {'short' : 'g', 'long' : 'enums', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'typedefs', 'fold' : 0, 'stl' : 0},
\ {'short' : 'n', 'long' : 'namespaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'unions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'members', 'fold' : 0, 'stl' : 0},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0}
\ ]
let type_cpp.sro = '::'
let type_cpp.kind2scope = {
\ 'g' : 'enum',
\ 'n' : 'namespace',
\ 'c' : 'class',
\ 's' : 'struct',
\ 'u' : 'union'
\ }
let type_cpp.scope2kind = {
\ 'enum' : 'g',
\ 'namespace' : 'n',
\ 'class' : 'c',
\ 'struct' : 's',
\ 'union' : 'u'
\ }
let types.cpp = type_cpp
let types.cuda = type_cpp
let types.arduino = type_cpp
" C# {{{1
let type_cs = tagbar#prototypes#typeinfo#new()
let type_cs.ctagstype = 'c#'
let type_cs.kinds = [
\ {'short' : 'd', 'long' : 'macros', 'fold' : 1, 'stl' : 0},
\ {'short' : 'f', 'long' : 'fields', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'enums', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'typedefs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'n', 'long' : 'namespaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'E', 'long' : 'events', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'properties', 'fold' : 0, 'stl' : 1}
\ ]
let type_cs.sro = '.'
let type_cs.kind2scope = {
\ 'n' : 'namespace',
\ 'i' : 'interface',
\ 'c' : 'class',
\ 's' : 'struct',
\ 'g' : 'enum'
\ }
let type_cs.scope2kind = {
\ 'namespace' : 'n',
\ 'interface' : 'i',
\ 'class' : 'c',
\ 'struct' : 's',
\ 'enum' : 'g'
\ }
let types.cs = type_cs
" Clojure {{{1
let type_clojure = tagbar#prototypes#typeinfo#new()
let type_clojure.ctagstype = 'clojure'
let type_clojure.kinds = [
\ {'short': 'n', 'long': 'namespace', 'fold': 0, 'stl': 1},
\ {'short': 'f', 'long': 'function', 'fold': 0, 'stl': 1},
\ ]
let type_clojure.sro = '.'
let type_clojure.kind2scope = {
\ 'n' : 'namespace',
\ }
let type_clojure.scope2kind = {
\ 'namespace' : 'n'
\ }
let types.clojure = type_clojure
" CMake {{{1
let type_cmake = tagbar#prototypes#typeinfo#new()
let type_cmake.ctagstype = 'cmake'
let type_cmake.kinds = [
\ {'short': 'p', 'long': 'projects' , 'fold': 0, 'stl': 1},
\ {'short': 'm', 'long': 'macros' , 'fold': 0, 'stl': 1},
\ {'short': 'f', 'long': 'functions', 'fold': 0, 'stl': 1},
\ {'short': 'D', 'long': 'options' , 'fold': 0, 'stl': 1},
\ {'short': 'v', 'long': 'variables', 'fold': 0, 'stl': 1},
\ {'short': 't', 'long': 'targets' , 'fold': 0, 'stl': 1},
\ ]
let type_cmake.sro = '.'
let type_cmake.kind2scope = {
\ 'f' : 'function',
\ }
let type_cmake.scope2kind = {
\ 'function' : 'f',
\ }
let types.cmake = type_cmake
" Crystal {{{1
let type_crystal = tagbar#prototypes#typeinfo#new()
let type_crystal.ctagstype = 'crystal'
let type_crystal.kinds = [
\ {'short' : 'm', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'defs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'M', 'long' : 'macros', 'fold' : 0, 'stl' : 1},
\ {'short' : 'l', 'long' : 'libs', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'a', 'long' : 'aliases', 'fold' : 0, 'stl' : 1}
\ ]
let type_crystal.sro = '::'
let types.crystal = type_crystal
" Ctags config {{{1
let type_ctags = tagbar#prototypes#typeinfo#new()
let type_ctags.ctagstype = 'ctags'
let type_ctags.kinds = [
\ {'short' : 'l', 'long' : 'language definitions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'k', 'long' : 'kind definitions', 'fold' : 0, 'stl' : 1},
\ ]
let type_ctags.sro = '.' " Not actually possible
let type_ctags.kind2scope = {
\ 'l' : 'langdef',
\ }
let type_ctags.scope2kind = {
\ 'langdef' : 'l',
\ }
let types.ctags = type_ctags
" COBOL {{{1
let type_cobol = tagbar#prototypes#typeinfo#new()
let type_cobol.ctagstype = 'cobol'
let type_cobol.kinds = [
\ {'short' : 'd', 'long' : 'data items', 'fold' : 0, 'stl' : 1},
\ {'short' : 'D', 'long' : 'divisions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'file descriptions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'group items', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'paragraphs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'P', 'long' : 'program ids', 'fold' : 0, 'stl' : 1},
\ {'short' : 'S', 'long' : 'source code file', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'sections', 'fold' : 0, 'stl' : 1}
\ ]
let types.cobol = type_cobol
" CSS {{{1
let type_css = tagbar#prototypes#typeinfo#new()
let type_css.ctagstype = 'css'
let type_css.kinds = [
\ {'short' : 's', 'long' : 'selector', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'identities', 'fold' : 1, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 1, 'stl' : 0}
\ ]
let types.css = type_css
" D {{{1
let type_d = tagbar#prototypes#typeinfo#new()
let type_d.ctagstype = 'D'
let type_d.kinds = [
\ {'short' : 'M', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'V', 'long' : 'version statements', 'fold' : 1, 'stl' : 0},
\ {'short' : 'n', 'long' : 'namespaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'T', 'long' : 'templates', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'structure names', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'enumeration names', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 'u', 'long' : 'union names', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'function prototypes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'function definitions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'members', 'fold' : 0, 'stl' : 1},
\ {'short' : 'a', 'long' : 'aliases', 'fold' : 1, 'stl' : 0},
\ {'short' : 'X', 'long' : 'mixins', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variable definitions', 'fold' : 0, 'stl' : 0},
\ ]
let type_d.sro = '.'
let type_d.kind2scope = {
\ 'g' : 'enum',
\ 'n' : 'namespace',
\ 'i' : 'interface',
\ 'c' : 'class',
\ 's' : 'struct',
\ 'u' : 'union'
\ }
let type_d.scope2kind = {
\ 'enum' : 'g',
\ 'namespace' : 'n',
\ 'interface' : 'i',
\ 'class' : 'c',
\ 'struct' : 's',
\ 'union' : 'u'
\ }
let types.d = type_d
" DOS Batch {{{1
let type_dosbatch = tagbar#prototypes#typeinfo#new()
let type_dosbatch.ctagstype = 'dosbatch'
let type_dosbatch.kinds = [
\ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 1}
\ ]
let types.dosbatch = type_dosbatch
" Eiffel {{{1
let type_eiffel = tagbar#prototypes#typeinfo#new()
let type_eiffel.ctagstype = 'eiffel'
let type_eiffel.kinds = [
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'features', 'fold' : 0, 'stl' : 1}
\ ]
let type_eiffel.sro = '.' " Not sure, is nesting even possible?
let type_eiffel.kind2scope = {
\ 'c' : 'class',
\ 'f' : 'feature'
\ }
let type_eiffel.scope2kind = {
\ 'class' : 'c',
\ 'feature' : 'f'
\ }
let types.eiffel = type_eiffel
" Elm {{{1
" based on https://github.com/bitterjug/vim-tagbar-ctags-elm/blob/master/ftplugin/elm/tagbar-elm.vim
let type_elm = tagbar#prototypes#typeinfo#new()
let type_elm.ctagstype = 'elm'
let type_elm.kinds = [
\ {'short' : 'm', 'long' : 'modules', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'imports', 'fold' : 1, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 1, 'stl' : 0},
\ {'short' : 'a', 'long' : 'type aliases', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'type constructors', 'fold' : 0, 'stl' : 0},
\ {'short' : 'p', 'long' : 'ports', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 1, 'stl' : 0},
\ ]
let type_elm.sro = ':'
let type_elm.kind2scope = {
\ 'f' : 'function',
\ 'm' : 'module',
\ 't' : 'type'
\ }
let type_elm.scope2kind = {
\ 'function' : 'f',
\ 'module' : 'm',
\ 'type' : 't'
\ }
let types.elm = type_elm
" Erlang {{{1
let type_erlang = tagbar#prototypes#typeinfo#new()
let type_erlang.ctagstype = 'erlang'
let type_erlang.kinds = [
\ {'short' : 'm', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'macro definitions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'r', 'long' : 'record definitions', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'type definitions', 'fold' : 0, 'stl' : 1}
\ ]
let type_erlang.sro = '.' " Not sure, is nesting even possible?
let type_erlang.kind2scope = {
\ 'm' : 'module'
\ }
let type_erlang.scope2kind = {
\ 'module' : 'm'
\ }
let types.erlang = type_erlang
" Flex {{{1
" Vim doesn't support Flex out of the box, this is based on rough
" guesses and probably requires
" http://www.vim.org/scripts/script.php?script_id=2909
" Improvements welcome!
let type_as = tagbar#prototypes#typeinfo#new()
let type_as.ctagstype = 'flex'
let type_as.kinds = [
\ {'short' : 'v', 'long' : 'global variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'properties', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'x', 'long' : 'mxtags', 'fold' : 0, 'stl' : 0}
\ ]
let type_as.sro = '.'
let type_as.kind2scope = {
\ 'c' : 'class'
\ }
let type_as.scope2kind = {
\ 'class' : 'c'
\ }
let types.mxml = type_as
let types.actionscript = type_as
" Fortran {{{1
let type_fortran = tagbar#prototypes#typeinfo#new()
let type_fortran.ctagstype = 'fortran'
let type_fortran.kinds = [
\ {'short' : 'm', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'programs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'k', 'long' : 'components', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'derived types and structures', 'fold' : 0,
\ 'stl' : 1},
\ {'short' : 'c', 'long' : 'common blocks', 'fold' : 0, 'stl' : 1},
\ {'short' : 'b', 'long' : 'block data', 'fold' : 0, 'stl' : 0},
\ {'short' : 'E', 'long' : 'enumerations', 'fold' : 0, 'stl' : 1},
\ {'short' : 'N', 'long' : 'enumeration values', 'fold' : 0, 'stl' : 0},
\ {'short' : 'e', 'long' : 'entry points', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1},
\ {'short' : 'M', 'long' : 'type bound procedures', 'fold' : 0,
\ 'stl' : 1},
\ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1},
\ {'short' : 'n', 'long' : 'namelists', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0}
\ ]
let type_fortran.sro = '.' " Not sure, is nesting even possible?
let type_fortran.kind2scope = {
\ 'm' : 'module',
\ 'p' : 'program',
\ 'f' : 'function',
\ 's' : 'subroutine'
\ }
let type_fortran.scope2kind = {
\ 'module' : 'm',
\ 'program' : 'p',
\ 'function' : 'f',
\ 'subroutine' : 's'
\ }
let types.fortran = type_fortran
" Go {{{1
let type_go = tagbar#prototypes#typeinfo#new()
let type_go.ctagstype = 'go'
let type_go.kinds = [
\ {'short' : 'p', 'long' : 'packages', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'structs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'struct members', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0}
\ ]
let type_go.sro = '.'
let type_go.kind2scope = {
\ 's' : 'struct'
\ }
let type_go.scope2kind = {
\ 'struct' : 's'
\ }
let types.go = type_go
" Haskell {{{1
let type_haskell = tagbar#prototypes#typeinfo#new()
let type_haskell.ctagstype = 'haskell'
let type_haskell.kinds = [
\ {'short' : 'm', 'long' : 'module', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'constructors', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let types.haskell = type_haskell
" HTML {{{1
let type_html = tagbar#prototypes#typeinfo#new()
let type_html.ctagstype = 'html'
let type_html.ctagsargs = [
\ '--fields=+{roles}',
\ '--extras=+{reference}',
\ '--extras=+F',
\ '-f',
\ '-',
\ '--format=2',
\ '--excmd=pattern',
\ '--fields=nksSafet',
\ '--sort=no',
\ '--append=no',
\ ]
let type_html.kinds = [
\ {'short' : 'a', 'long' : 'named anchors', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'C', 'long' : 'stylesheets', 'fold' : 0, 'stl' : 1},
\ {'short' : 'I', 'long' : 'identifiers', 'fold' : 0, 'stl' : 1},
\ {'short' : 'J', 'long' : 'scripts', 'fold' : 0, 'stl' : 1},
\ {'short' : 'h', 'long' : 'H1 headings', 'fold' : 1, 'stl' : 1},
\ {'short' : 'i', 'long' : 'H2 headings', 'fold' : 1, 'stl' : 1},
\ {'short' : 'j', 'long' : 'H3 headings', 'fold' : 1, 'stl' : 1},
\ ]
let types.html = type_html
" Java {{{1
let type_java = tagbar#prototypes#typeinfo#new()
let type_java.ctagstype = 'java'
let type_java.kinds = [
\ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0},
\ {'short' : 'f', 'long' : 'fields', 'fold' : 0, 'stl' : 0},
\ {'short' : 'g', 'long' : 'enum types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enum constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'a', 'long' : 'annotations', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1}
\ ]
let type_java.sro = '.'
let type_java.kind2scope = {
\ 'g' : 'enum',
\ 'i' : 'interface',
\ 'c' : 'class'
\ }
let type_java.scope2kind = {
\ 'enum' : 'g',
\ 'interface' : 'i',
\ 'class' : 'c'
\ }
let types.java = type_java
" JavaScript {{{1
let type_javascript = tagbar#prototypes#typeinfo#new()
let type_javascript.ctagstype = 'javascript'
let type_javascript.kinds = [
\ {'short': 'v', 'long': 'global variables', 'fold': 0, 'stl': 0},
\ {'short': 'C', 'long': 'constants', 'fold': 0, 'stl': 0},
\ {'short': 'c', 'long': 'classes', 'fold': 0, 'stl': 1},
\ {'short': 'g', 'long': 'generators', 'fold': 0, 'stl': 0},
\ {'short': 'p', 'long': 'properties', 'fold': 0, 'stl': 0},
\ {'short': 'm', 'long': 'methods', 'fold': 0, 'stl': 1},
\ {'short': 'f', 'long': 'functions', 'fold': 0, 'stl': 1},
\ ]
let type_javascript.sro = '.'
let type_javascript.kind2scope = {
\ 'c' : 'class',
\ 'f' : 'function',
\ 'm' : 'method',
\ 'p' : 'property',
\ }
let type_javascript.scope2kind = {
\ 'class' : 'c',
\ 'function' : 'f',
\ }
let types.javascript = type_javascript
" Kotlin {{{1
let type_kotlin = tagbar#prototypes#typeinfo#new()
let type_kotlin.ctagstype = 'kotlin'
let type_kotlin.kinds = [
\ {'short': 'p', 'long': 'packages', 'fold':0, 'stl':0},
\ {'short': 'c', 'long': 'classes', 'fold':0, 'stl':1},
\ {'short': 'o', 'long': 'objects', 'fold':0, 'stl':0},
\ {'short': 'i', 'long': 'interfaces', 'fold':0, 'stl':0},
\ {'short': 'T', 'long': 'typealiases', 'fold':0, 'stl':0},
\ {'short': 'm', 'long': 'methods', 'fold':0, 'stl':1},
\ {'short': 'C', 'long': 'constants', 'fold':0, 'stl':0},
\ {'short': 'v', 'long': 'variables', 'fold':0, 'stl':0},
\ ]
let type_kotlin.sro = '.'
" Note: the current universal ctags version does not have proper
" definition for the scope of the tags. So for now we can't add the
" kind2scope / scope2kind for anything until ctags supports the correct
" scope info
let type_kotlin.kind2scope = {
\ }
let type_kotlin.scope2kind = {
\ }
let types.kotlin = type_kotlin
" Lisp {{{1
let type_lisp = tagbar#prototypes#typeinfo#new()
let type_lisp.ctagstype = 'lisp'
let type_lisp.kinds = [
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let types.lisp = type_lisp
" Lua {{{1
let type_lua = tagbar#prototypes#typeinfo#new()
let type_lua.ctagstype = 'lua'
let type_lua.kinds = [
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let types.lua = type_lua
" Make {{{1
let type_make = tagbar#prototypes#typeinfo#new()
let type_make.ctagstype = 'make'
let type_make.kinds = [
\ {'short' : 'I', 'long' : 'makefiles', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'macros', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'targets', 'fold' : 0, 'stl' : 1}
\ ]
let types.make = type_make
" Markdown {{{1
let type_markdown = tagbar#prototypes#typeinfo#new()
let type_markdown.ctagstype = 'markdown'
let type_markdown.kinds = [
\ {'short' : 'c', 'long' : 'chapter', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'section', 'fold' : 0, 'stl' : 1},
\ {'short' : 'S', 'long' : 'subsection', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'subsubsection', 'fold' : 0, 'stl' : 1},
\ {'short' : 'T', 'long' : 'l3subsection', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'l4subsection', 'fold' : 0, 'stl' : 1},
\ ]
let type_markdown.kind2scope = {
\ 'c' : 'chapter',
\ 's' : 'section',
\ 'S' : 'subsection',
\ 't' : 'subsubsection',
\ 'T' : 'l3subsection',
\ 'u' : 'l4subsection',
\ }
let type_markdown.scope2kind = {
\ 'chapter' : 'c',
\ 'section' : 's',
\ 'subsection' : 'S',
\ 'subsubsection' : 't',
\ 'l3subsection' : 'T',
\ 'l4subsection' : 'u',
\ }
let type_markdown.sro = '""'
let type_markdown.sort = 0
let types.markdown = type_markdown
let types.pandoc = type_markdown
" Matlab {{{1
let type_matlab = tagbar#prototypes#typeinfo#new()
let type_matlab.ctagstype = 'matlab'
let type_matlab.kinds = [
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0}
\ ]
let types.matlab = type_matlab
" NRoff {{{1
let type_nroff = tagbar#prototypes#typeinfo#new()
let type_nroff.ctagstype = 'nroff'
let type_nroff.kinds = [
\ {'short' : 't', 'long' : 'titles', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'sections', 'fold' : 0, 'stl' : 1}
\ ]
let type_nroff.sro = '.'
let type_nroff.kind2scope = {
\ 't' : 'title',
\ 's' : 'section'
\ }
let type_nroff.scope2kind = {
\ 'section' : 't',
\ 'title' : 's'
\ }
let types.nroff = type_nroff
" ObjectiveC {{{1
let type_objc = tagbar#prototypes#typeinfo#new()
let type_objc.ctagstype = 'objectivec'
let type_objc.kinds = [
\ {'short' : 'M', 'long' : 'preprocessor macros', 'fold' : 1, 'stl' : 0},
\ {'short' : 't', 'long' : 'type aliases', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'global variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'class interfaces', 'fold' : 0, 'stl' : 1},
\ {'short' : 'I', 'long' : 'class implementations', 'fold' : 0, 'stl' : 1},
\ {'short' : 'c', 'long' : 'class methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 'E', 'long' : 'object fields', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'object methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'type structures', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'enumerations', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'properties', 'fold' : 0, 'stl' : 0},
\ {'short' : 'P', 'long' : 'protocols', 'fold' : 0, 'stl' : 0},
\ ]
let type_objc.sro = ':'
let type_objc.kind2scope = {
\ 'i' : 'interface',
\ 'I' : 'implementation',
\ 's' : 'struct',
\ 'p' : 'protocol',
\ }
let type_objc.scope2kind = {
\ 'interface' : 'i',
\ 'implementation' : 'I',
\ 'struct' : 's',
\ 'protocol' : 'p',
\ }
let types.objc = type_objc
let types.objcpp = type_objc
" Ocaml {{{1
let type_ocaml = tagbar#prototypes#typeinfo#new()
let type_ocaml.ctagstype = 'ocaml'
let type_ocaml.kinds = [
\ {'short' : 'M', 'long' : 'modules or functors', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'global variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'C', 'long' : 'constructors', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'exceptions', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'type names', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'r', 'long' : 'structure fields', 'fold' : 0, 'stl' : 0},
\ {'short' : 'p', 'long' : 'signature items', 'fold' : 0, 'stl' : 0}
\ ]
let type_ocaml.sro = '.' " Not sure, is nesting even possible?
let type_ocaml.kind2scope = {
\ 'M' : 'Module',
\ 'c' : 'class',
\ 't' : 'type'
\ }
let type_ocaml.scope2kind = {
\ 'Module' : 'M',
\ 'class' : 'c',
\ 'type' : 't'
\ }
let types.ocaml = type_ocaml
" Pascal {{{1
let type_pascal = tagbar#prototypes#typeinfo#new()
let type_pascal.ctagstype = 'pascal'
let type_pascal.kinds = [
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'procedures', 'fold' : 0, 'stl' : 1}
\ ]
let types.pascal = type_pascal
" Perl {{{1
let type_perl = tagbar#prototypes#typeinfo#new()
let type_perl.ctagstype = 'perl'
let type_perl.kinds = [
\ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0},
\ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'M', 'long' : 'modules', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'formats', 'fold' : 0, 'stl' : 0},
\ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'subroutineDeclarations', 'fold' : 0, 'stl' : 0}
\ ]
let types.perl = type_perl
" Perl 6 {{{1
let type_perl6 = tagbar#prototypes#typeinfo#new()
let type_perl6.ctagstype = 'perl6'
let type_perl6.kinds = [
\ {'short' : 'o', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'packages', 'fold' : 1, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'g', 'long' : 'grammars', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 1},
\ {'short' : 'r', 'long' : 'roles', 'fold' : 0, 'stl' : 1},
\ {'short' : 'u', 'long' : 'rules', 'fold' : 0, 'stl' : 0},
\ {'short' : 'b', 'long' : 'submethods', 'fold' : 0, 'stl' : 1},
\ {'short' : 's', 'long' : 'subroutines', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'tokens', 'fold' : 0, 'stl' : 0},
\ ]
let types.perl6 = type_perl6
" PHP {{{1
let type_php = tagbar#prototypes#typeinfo#new()
let type_php.ctagstype = 'php'
let type_php.kinds = [
\ {'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}
\ ]
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
" Protobuf {{{1
let type_protobuf = tagbar#prototypes#typeinfo#new()
let type_protobuf.ctagstype = 'Protobuf'
let type_protobuf.kinds = [
\ {'short' : 'p', 'long' : 'packages', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'messages', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'fields', 'fold' : 0, 'stl' : 0},
\ {'short' : 'e', 'long' : 'enum constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'g', 'long' : 'enum types', 'fold' : 0, 'stl' : 0},
\ {'short' : 's', 'long' : 'services', 'fold' : 0, 'stl' : 0},
\ ]
let types.proto = type_protobuf
" Python {{{1
let type_python = tagbar#prototypes#typeinfo#new()
let type_python.ctagstype = 'python'
let type_python.kinds = [
\ {'short' : 'i', 'long' : 'modules', 'fold' : 1, 'stl' : 0},
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'members', 'fold' : 0, 'stl' : 1},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0}
\ ]
let type_python.sro = '.'
let type_python.kind2scope = {
\ 'c' : 'class',
\ 'f' : 'function',
\ 'm' : 'function'
\ }
let type_python.scope2kind = {
\ 'class' : 'c',
\ 'function' : 'f'
\ }
let type_python.kind2scope.m = 'member'
let type_python.scope2kind.member = 'm'
let types.python = type_python
let types.pyrex = type_python