File plugin/qthelp.vim changed (mode: 100644) (index 1fec401..e1b17f7) |
1 |
1 |
" Name: qthelp |
" Name: qthelp |
2 |
2 |
" Author: xaizek (xaizek@lavabit.com) |
" Author: xaizek (xaizek@lavabit.com) |
3 |
|
" Version: 1.1.2 |
|
|
3 |
|
" Version: 1.1.3 |
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 |
|
58 |
58 |
" v1.1.2 (2013-05-14) - Fixed support for latest versions of Qt |
" v1.1.2 (2013-05-14) - Fixed support for latest versions of Qt |
59 |
59 |
" by the :QHelp command (thanks to Dmitry |
" by the :QHelp command (thanks to Dmitry |
60 |
60 |
" Frank). |
" Frank). |
|
61 |
|
" v1.1.3 (2013-05-14) - Fixed regular expression for filtering |
|
62 |
|
" help tags (thanks to Dmitry Frank). |
61 |
63 |
|
|
62 |
64 |
if exists("g:loaded_qthelp") |
if exists("g:loaded_qthelp") |
63 |
65 |
finish |
finish |
|
... |
... |
endfunction |
192 |
194 |
" tries to guess tag by its name and name of the class |
" tries to guess tag by its name and name of the class |
193 |
195 |
function! s:QHGetWithoutAppleRef(tag, class) |
function! s:QHGetWithoutAppleRef(tag, class) |
194 |
196 |
let l:lst = taglist('^'.a:tag.'$') |
let l:lst = taglist('^'.a:tag.'$') |
195 |
|
call filter(l:lst, 'v:val["filename"] =~? "[/\]'.a:class.'\.html$"') |
|
|
197 |
|
call filter(l:lst, 'v:val["filename"] =~? "[/\\\\]'.a:class.'\.html$"') |
196 |
198 |
return l:lst |
return l:lst |
197 |
199 |
endfunction |
endfunction |
198 |
200 |
|
|