Permalink
Browse files

Bug fix for deduplication of syntax highlighting patterns

  • Loading branch information...
1 parent 4675193 commit 44b04871f812418ac0fe7b38e59222de118d07cb @xolox committed Jan 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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'))

0 comments on commit 44b0487

Please sign in to comment.