File plugin/qthelp.vim changed (mode: 100644) (index 6b2322a..7684259) |
1 |
1 |
" Name: qthelp |
" Name: qthelp |
2 |
2 |
" Author: xaizek (xaizek@gmail.com) |
" Author: xaizek (xaizek@gmail.com) |
3 |
|
" Version: 1.1.1 |
|
|
3 |
|
" Version: 1.1.2 |
4 |
4 |
" |
" |
5 |
5 |
" Description: This plugin would allow you to open Qt help pages in browser |
" Description: This plugin would allow you to open Qt help pages in browser |
6 |
6 |
" from your C++ source code. Currently it can show help if the word |
" from your C++ source code. Currently it can show help if the word |
|
55 |
55 |
" v1.0.1 (2013-03-09) - Fixed multiple load guard |
" v1.0.1 (2013-03-09) - Fixed multiple load guard |
56 |
56 |
" v1.1.1 (2013-03-09) - Added support for latest versions of Qt |
" v1.1.1 (2013-03-09) - Added support for latest versions of Qt |
57 |
57 |
" (thanks to Dmitry Frank). |
" (thanks to Dmitry Frank). |
|
58 |
|
" v1.1.2 (2013-05-14) - Fixed support for latest versions of Qt |
|
59 |
|
" by the :QHelp command (thanks to Dmitry |
|
60 |
|
" Frank). |
58 |
61 |
|
|
59 |
62 |
if exists("g:loaded_qthelp") |
if exists("g:loaded_qthelp") |
60 |
63 |
finish |
finish |
|
... |
... |
function! s:QHGetTagsList(query) |
201 |
204 |
|
|
202 |
205 |
let l:regex = '\('.s:idregex.'\)::\('.s:idregex.'\)' |
let l:regex = '\('.s:idregex.'\)::\('.s:idregex.'\)' |
203 |
206 |
if empty(matchstr(a:query, l:regex)) |
if empty(matchstr(a:query, l:regex)) |
204 |
|
let l:lst = taglist('//apple_ref/cpp/cl//'.a:query.'$') |
|
|
207 |
|
let l:lst = s:QHTryFindClass(a:query) |
205 |
208 |
let b:membername = '' |
let b:membername = '' |
206 |
209 |
else |
else |
207 |
210 |
let l:class = substitute(a:query, l:regex, '\1', '') |
let l:class = substitute(a:query, l:regex, '\1', '') |
208 |
211 |
call s:QHDebug('QHDBG: QHGetTagsList, class="'.l:class.'"') |
call s:QHDebug('QHDBG: QHGetTagsList, class="'.l:class.'"') |
209 |
212 |
let l:member = substitute(a:query, l:regex, '\2', '') |
let l:member = substitute(a:query, l:regex, '\2', '') |
210 |
213 |
call s:QHDebug('QHDBG: QHGetTagsList, member="'.l:member.'"') |
call s:QHDebug('QHDBG: QHGetTagsList, member="'.l:member.'"') |
211 |
|
let l:lst = taglist('//apple_ref/cpp/clm/'.l:class.'/'.l:member.'$') |
|
212 |
|
if empty(l:lst) |
|
213 |
|
let l:lst = taglist('//apple_ref/cpp/instm/' |
|
214 |
|
\.l:class.'/'.l:member.'$') |
|
215 |
|
endif |
|
216 |
|
if empty(l:lst) |
|
217 |
|
let l:lst = taglist('//apple_ref/cpp/tag/' |
|
218 |
|
\.l:class.'/'.l:member.'$') |
|
219 |
|
endif |
|
|
214 |
|
let l:lst = s:QHGetTagsListOnMember(l:class, l:member) |
220 |
215 |
let b:membername = l:member |
let b:membername = l:member |
221 |
216 |
endif |
endif |
222 |
217 |
|
|