Escape tag name when removing it from a pseudo tag's scope path

This commit is contained in:
Jan Larres
2017-06-15 17:28:33 +12:00
parent b1c6cbc2d8
commit f5792732de

View File

@ -2733,7 +2733,7 @@ function! s:create_pseudotag(name, parent, kind, typeinfo, fileinfo) abort
let pseudotag = s:PseudoTag.New(a:name)
let pseudotag.fields.kind = a:kind
let parentscope = substitute(curpath, a:name . '$', '', '')
let parentscope = substitute(curpath, '\V' . a:name . '$', '', '')
let parentscope = substitute(parentscope,
\ '\V\^' . a:typeinfo.sro . '\$', '', '')