Replaced a loop with a call to extend().

This commit is contained in:
Benji Fisher
2011-12-12 10:13:28 -05:00
parent a3ecc6dab5
commit 22e798edf5

View File

@@ -3,7 +3,7 @@
" Description: vim global plugin that provides easy code commenting " Description: vim global plugin that provides easy code commenting
" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com> " Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
" Version: 2.3.0 " Version: 2.3.0
" Last Change: Mon Dec 12 08:00 AM 2011 EST " Last Change: Mon Dec 12 10:00 AM 2011 EST
" License: This program is free software. It comes without any warranty, " License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute " to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You " it and/or modify it under the terms of the Do What The Fuck You
@@ -62,10 +62,6 @@ call s:InitVariable("g:NERDRemoveExtraSpaces", 0)
call s:InitVariable("g:NERDRPlace", "<]") call s:InitVariable("g:NERDRPlace", "<]")
call s:InitVariable("g:NERDSpaceDelims", 0) call s:InitVariable("g:NERDSpaceDelims", 0)
if !exists("g:NERDCustomDelimiters")
let g:NERDCustomDelimiters = {}
endif
let s:NERDFileNameEscape="[]#*$%'\" ?`!&();<>\\" let s:NERDFileNameEscape="[]#*$%'\" ?`!&();<>\\"
let s:delimiterMap = { let s:delimiterMap = {
@@ -391,10 +387,9 @@ let s:delimiterMap = {
\ 'z8a': { 'left': ';' } \ 'z8a': { 'left': ';' }
\ } \ }
"merge in the custom delimiters if exists("g:NERDCustomDelimiters")
for ft in keys(g:NERDCustomDelimiters) call extend(s:delimiterMap, g:NERDCustomDelimiters)
let s:delimiterMap[ft] = g:NERDCustomDelimiters[ft] endif
endfor
" Section: Comment mapping functions, autocommands and commands {{{1 " Section: Comment mapping functions, autocommands and commands {{{1
" ============================================================================ " ============================================================================