Skip to content

Commit 44b0487

Browse files
committed
Bug fix for deduplication of syntax highlighting patterns
1 parent 4675193 commit 44b0487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/xolox/easytags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: January 15, 2012
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '2.8'
6+
let g:xolox#easytags#version = '2.8.1'
77

88
" Public interface through (automatic) commands. {{{1
99

@@ -314,7 +314,7 @@ function! xolox#easytags#highlight() " {{{2
314314
let matches = filter(copy(taglist), filter)
315315
if matches != []
316316
" Convert matched tags to :syntax command and execute it.
317-
let matches = map(xolox#misc#list#unique(matches), 'xolox#misc#escape#pattern(get(v:val, "name"))')
317+
let matches = xolox#misc#list#unique(map(matches, 'xolox#misc#escape#pattern(get(v:val, "name"))'))
318318
let pattern = tagkind.pattern_prefix . '\%(' . join(matches, '\|') . '\)' . tagkind.pattern_suffix
319319
let template = 'syntax match %s /%s/ containedin=ALLBUT,%s'
320320
let command = printf(template, hlgroup_tagged, escape(pattern, '/'), xolox#misc#option#get('easytags_ignored_syntax_groups'))

0 commit comments

Comments
 (0)