- Fixed error.

This commit is contained in:
Shougo Matsushita 2012-02-24 13:57:00 +09:00
parent 105485ac1d
commit dc607f8468

View File

@ -299,7 +299,7 @@ function! s:set_snippet_pattern(dict)"{{{
let abbr = has_key(a:dict, 'abbr')? a:dict.abbr : let abbr = has_key(a:dict, 'abbr')? a:dict.abbr :
\ substitute(a:dict.word, \ substitute(a:dict.word,
\ '\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>\|' \ '\${\d\+\%(:.\{-}\)\?\\\@<!}\|\$<\d\+\%(:.\{-}\)\?\\\@<!>\|'.
\ '\$\d\+\|<\%(\\n\|\\t\)>\|\s\+', ' ', 'g') \ '\$\d\+\|<\%(\\n\|\\t\)>\|\s\+', ' ', 'g')
let abbr = (g:neocomplcache_max_keyword_width >= 0 && let abbr = (g:neocomplcache_max_keyword_width >= 0 &&
\ len(abbr) > g:neocomplcache_max_keyword_width)? \ len(abbr) > g:neocomplcache_max_keyword_width)?