|
1 | 1 | " Vim script
|
2 | 2 | " Author: Peter Odding <peter@peterodding.com>
|
3 |
| -" Last Change: November 26, 2011 |
| 3 | +" Last Change: January 6, 2012 |
4 | 4 | " URL: http://peterodding.com/code/vim/easytags/
|
5 | 5 |
|
6 |
| -let g:xolox#easytags#version = '2.7.5' |
| 6 | +let g:xolox#easytags#version = '2.7.6' |
7 | 7 |
|
8 | 8 | " Public interface through (automatic) commands. {{{1
|
9 | 9 |
|
@@ -272,6 +272,7 @@ function! s:find_tagged_files(entries, context) " {{{3
|
272 | 272 | endfunction
|
273 | 273 |
|
274 | 274 | function! xolox#easytags#highlight() " {{{2
|
| 275 | + " TODO This is a mess; Re-implement Python version in Vim script, benchmark, remove Python version. |
275 | 276 | try
|
276 | 277 | " Treat C++ and Objective-C as plain C.
|
277 | 278 | let filetype = get(s:canonical_aliases, &ft, &ft)
|
@@ -313,8 +314,8 @@ function! xolox#easytags#highlight() " {{{2
|
313 | 314 | let matches = filter(copy(taglist), filter)
|
314 | 315 | if matches != []
|
315 | 316 | " Convert matched tags to :syntax command and execute it.
|
316 |
| - call map(matches, 'xolox#misc#escape#pattern(get(v:val, "name"))') |
317 |
| - let pattern = tagkind.pattern_prefix . '\%(' . join(xolox#misc#list#unique(matches), '\|') . '\)' . tagkind.pattern_suffix |
| 317 | + let matches = map(xolox#misc#list#unique(matches), 'xolox#misc#escape#pattern(get(v:val, "name"))') |
| 318 | + let pattern = tagkind.pattern_prefix . '\%(' . join(matches, '\|') . '\)' . tagkind.pattern_suffix |
318 | 319 | let template = 'syntax match %s /%s/ containedin=ALLBUT,%s'
|
319 | 320 | let command = printf(template, hlgroup_tagged, escape(pattern, '/'), xolox#misc#option#get('easytags_ignored_syntax_groups'))
|
320 | 321 | call xolox#misc#msg#debug("easytags.vim %s: Executing command '%s'.", g:xolox#easytags#version, command)
|
|
0 commit comments