From d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8 Mon Sep 17 00:00:00 2001 From: Igor Prusov Date: Mon, 5 Aug 2024 18:28:31 +0300 Subject: [PATCH] Add Device Tree Source(DTS) support (#890) --- autoload/tagbar/types/uctags.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoload/tagbar/types/uctags.vim b/autoload/tagbar/types/uctags.vim index 06625fe..08de035 100644 --- a/autoload/tagbar/types/uctags.vim +++ b/autoload/tagbar/types/uctags.vim @@ -508,6 +508,14 @@ function! tagbar#types#uctags#init(supported_types) abort \ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 1} \ ] let types.dosbatch = type_dosbatch + " DTS {{{1 + let type_dts = tagbar#prototypes#typeinfo#new() + let type_dts.ctagstype = 'dts' + let type_dts.kinds = [ + \ {'short' : 'l', 'long' : 'labels', 'fold' : 0, 'stl' : 1}, + \ {'short' : 'p', 'long' : 'phandlers', 'fold' : 0, 'stl' : 1} + \ ] + let types.dts = type_dts " Eiffel {{{1 let type_eiffel = tagbar#prototypes#typeinfo#new() let type_eiffel.ctagstype = 'eiffel'