Consider ´quotes in smart_quotes`. Close #182.

[:punct:] does not always match the same set of characters.
This commit is contained in:
Israel Chauca Fuentes
2014-12-02 11:07:22 -05:00
parent a4ac44a84f
commit fe1983cfa1

View File

@@ -108,7 +108,8 @@ function! s:init() "{{{
call s:option_init("smart_matchpairs", '^\%(\w\|\!\|£\|\$\|_\|["'']\s*\S\)')
" smart_quotes
" XXX: backward compatibility. Ugly, should go the way of the dodo soon.
let default_smart_quotes = '\%(\w\|[^[:punct:][:space:]]\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]]\)'
let quotes = escape(join(s:g('quotes_list'), ''), '\-^[]')
let default_smart_quotes = '\%(\w\|[^[:punct:][:space:]' . quotes . ']\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]' . quotes . ']\)'
if exists('g:delimitMate_smart_quotes') && type(g:delimitMate_smart_quotes) == type(0)
if g:delimitMate_smart_quotes
unlet g:delimitMate_smart_quotes