|
3 | 3 | " tags.vim -
|
4 | 4 | "
|
5 | 5 | " Created by skywind on 2020/01/07
|
6 |
| -" Last Modified: 2020/01/07 03:17:49 |
| 6 | +" Last Modified: 2024/03/23 21:14 |
7 | 7 | "
|
8 | 8 | "======================================================================
|
9 | 9 |
|
@@ -302,6 +302,9 @@ function! quickui#tags#ctags_function(bid, ft)
|
302 | 302 | \ "go": "--go-kinds=f --language-force=Go",
|
303 | 303 | \ "rust": "--rust-kinds=fPM",
|
304 | 304 | \ "ocaml": "--ocaml-kinds=mf",
|
| 305 | + \ "dosini": "--iniconf-kinds=s --language-force=iniconf", |
| 306 | + \ "taskini": "--iniconf-kinds=s --language-force=iniconf", |
| 307 | + \ "ini": "--iniconf-kinds=s --language-force=iniconf", |
305 | 308 | \ }
|
306 | 309 | let ft = (a:ft != '')? a:ft : getbufvar(a:bid, '&ft')
|
307 | 310 | let modified = getbufvar(a:bid, '&modified')
|
@@ -330,12 +333,13 @@ function! quickui#tags#ctags_function(bid, ft)
|
330 | 333 | endif
|
331 | 334 | let items = []
|
332 | 335 | for line in split(output, "\n")
|
| 336 | + let line = substitute(line, '[\t\r\n ]*$', '', '') |
333 | 337 | let item = split(line, "\t")
|
334 | 338 | if len(item) >= 4
|
335 | 339 | let ni = {}
|
336 | 340 | let ni.tag = item[0] " tagname
|
337 | 341 | let ni.line = str2nr(substitute(item[2], '[;"\s]', '', 'g'))
|
338 |
| - let ni.mode = substitute(item[3], '[\r\n\s]*$', '', 'g') |
| 342 | + let ni.mode = substitute(item[3], '[\r\n\t ]*$', '', 'g') |
339 | 343 | let ni.text = ''
|
340 | 344 | let code = getbufline(a:bid, ni.line)
|
341 | 345 | if len(code) == 1
|
|
0 commit comments