Add expand_inside_quotes to report and fix doc. Closes #179.

This commit is contained in:
Israel Chauca Fuentes
2014-11-27 02:11:12 -05:00
parent c678061b79
commit 073957f0a1
2 changed files with 21 additions and 22 deletions

View File

@@ -538,13 +538,30 @@ endfunction " }}} delimitMate#BS()
function! delimitMate#TestMappings() "{{{ function! delimitMate#TestMappings() "{{{
echom 1 echom 1
%d %d
let options = sort(keys(delimitMate#OptionsList())) let options = sort([
\ 'apostrophes',
\ 'autoclose',
\ 'balance_matchpairs',
\ 'jump_expansion',
\ 'eol_marker',
\ 'excluded_ft',
\ 'excluded_regions',
\ 'expand_cr',
\ 'expand_space',
\ 'matchpairs',
\ 'nesting_quotes',
\ 'quotes',
\ 'smart_matchpairs',
\ 'smart_quotes',
\ 'expand_inside_quotes',
\])
let optoutput = ['delimitMate Report', '==================', '', let optoutput = ['delimitMate Report', '==================', '',
\ '* Options: ( ) default, (g) global, (b) buffer',''] \ '* Options: ( ) default, (g) global, (b) buffer','']
for option in options for option in options
let scope = s:exists(option, 'b') ? 'b' let scope = s:exists(option, 'b') ? 'b'
\ : s:exists(option, 'g') ? 'g' : ' ' \ : s:exists(option, 'g') ? 'g' : ' '
call add(optoutput, '(' . scope . ')' . ' delimitMate_' . option . ' = ' . string(s:g(option))) call add(optoutput,
\'(' . scope . ')' . ' delimitMate_' . option . ' = ' . string(s:g(option)))
endfor endfor
call append(line('$'), optoutput + ['--------------------','']) call append(line('$'), optoutput + ['--------------------',''])
@@ -660,25 +677,6 @@ function! delimitMate#TestMappings() "{{{
setlocal nowrap setlocal nowrap
call feedkeys("\<Esc>\<Esc>", 'n') call feedkeys("\<Esc>\<Esc>", 'n')
endfunction "}}} endfunction "}}}
function! delimitMate#OptionsList() "{{{
return {
\ 'apostrophes' : '',
\ 'autoclose' : 1,
\ 'balance_matchpairs' : 0,
\ 'jump_expansion' : 0,
\ 'eol_marker' : '',
\ 'excluded_ft' : '',
\ 'excluded_regions' : 'Comment',
\ 'expand_cr' : 0,
\ 'expand_space' : 0,
\ 'matchpairs' : &matchpairs,
\ 'nesting_quotes' : [],
\ 'quotes' : '" '' `',
\ 'smart_matchpairs' : '\w',
\ 'smart_quotes' : 1,
\}
endfunction " delimitMate#OptionsList }}}
"}}} "}}}
" vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2 " vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2

View File

@@ -241,7 +241,8 @@ e.g.: >
*'delimitMate_smart_quotes'* *'delimitMate_smart_quotes'*
*'b:delimitMate_smart_quotes'* *'b:delimitMate_smart_quotes'*
Values: String with an optional ! at the beginning followed by a regexp ~ Values: String with an optional ! at the beginning followed by a regexp ~
Default: '\%(\w\|[^[:punct:][:space:]]\|\%(\\\\\)*\\\)\%#\|\%#\w' ~ Default:~
'\%(\w\|[^[:punct:][:space:]]\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]]\)' ~
A bang (!) at the beginning is removed and used to "negate" the pattern. The A bang (!) at the beginning is removed and used to "negate" the pattern. The
remaining text is used as a regexp to be matched on the current line. A single remaining text is used as a regexp to be matched on the current line. A single