aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2012-01-15 01:59:01 +0100
committerPeter Odding <peter@peterodding.com>2012-01-15 01:59:01 +0100
commit44b04871f812418ac0fe7b38e59222de118d07cb (patch)
tree5d5ce7574a710253b3e1c87e484ba243cc56b206
parent467519375d6b462bb28e2e1d490fa634a0bd7c69 (diff)
downloadvim-easytags-44b04871f812418ac0fe7b38e59222de118d07cb.tar.gz
Bug fix for deduplication of syntax highlighting patterns
-rw-r--r--autoload/xolox/easytags.vim4
1 files changed, 2 insertions, 2 deletions
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'))