Skip to content

Commit 915375a

Browse files
committed
require exact filename for prioritazion
Signed-off-by: Guybrush <miguel.barro@live.com>
1 parent 13b497b commit 915375a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

start/cpptags/autoload/cpptags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ function! cpptags#CppTagFunc(pattern, flags, info)
5151
call s:Log("regular expression: ordinary tag processing")
5252
let result = taglist(a:pattern)
5353
return result
54-
elseif a:pattern =~ '^\i\|\.$'
54+
elseif a:pattern =~ '^\(\i\|\.\)\+$'
5555
let result = taglist(a:pattern)
5656
" search for an exact filename match
5757
let result = result->filter({idx, val ->
58-
\ val["name"] =~ a:pattern && val['kind'] == 'file'})
58+
\ val["name"] == a:pattern && val['kind'] == 'file'})
5959
if !empty(result)
6060
call s:Log("filename pattern: ordinary tag processing")
6161
return result
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-D WINRT_IMPL_AUTO(B)=B
22
-I WINRT_EXPORT
3+
-I WINRT_IMPL_EMPTY_BASES

0 commit comments

Comments
 (0)