From 44b04871f812418ac0fe7b38e59222de118d07cb Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 15 Jan 2012 01:59:01 +0100 Subject: Bug fix for deduplication of syntax highlighting patterns --- autoload/xolox/easytags.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/xolox') diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 7f9f465..2088f48 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -3,7 +3,7 @@ " Last Change: January 15, 2012 " URL: http://peterodding.com/code/vim/easytags/ -let g:xolox#easytags#version = '2.8' +let g:xolox#easytags#version = '2.8.1' " Public interface through (automatic) commands. {{{1 @@ -314,7 +314,7 @@ function! xolox#easytags#highlight() " {{{2 let matches = filter(copy(taglist), filter) if matches != [] " Convert matched tags to :syntax command and execute it. - let matches = map(xolox#misc#list#unique(matches), 'xolox#misc#escape#pattern(get(v:val, "name"))') + let matches = xolox#misc#list#unique(map(matches, 'xolox#misc#escape#pattern(get(v:val, "name"))')) let pattern = tagkind.pattern_prefix . '\%(' . join(matches, '\|') . '\)' . tagkind.pattern_suffix let template = 'syntax match %s /%s/ containedin=ALLBUT,%s' let command = printf(template, hlgroup_tagged, escape(pattern, '/'), xolox#misc#option#get('easytags_ignored_syntax_groups')) -- cgit v1.2.3