1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Fix bug with prototype recognition

This commit is contained in:
Jan Larres
2011-01-24 20:14:28 +13:00
parent f17f1faa1f
commit ce001d55f4

View File

@@ -506,7 +506,9 @@ function! s:ParseTagline(part1, part2, typeinfo)
let taginfo.name = basic_info[0]
let taginfo.file = basic_info[1]
let pattern = basic_info[2]
" the pattern can contain tabs and thus may have been split up, so join
" the rest of the items together again
let pattern = join(basic_info[2:], "\t")
let start = 2 " skip the slash and the ^
let end = strlen(pattern) - 1
if pattern[end - 1] == '$'