mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-15 13:13:47 -05:00
remove a useless comment
This commit is contained in:
@@ -718,15 +718,13 @@ function s:SetUpForNewFiletype(filetype, forceReset)
|
|||||||
elseif a:filetype ==? "z8a"
|
elseif a:filetype ==? "z8a"
|
||||||
call s:MapDelimiters(';', '')
|
call s:MapDelimiters(';', '')
|
||||||
|
|
||||||
"we have not hardcoded the comment delimiters to use for this filetype so
|
|
||||||
"get them from &commentstring.
|
|
||||||
else
|
else
|
||||||
|
|
||||||
"extract the delims from &commentstring
|
"extract the delims from &commentstring
|
||||||
let left= substitute(&commentstring, '\([^ \t]*\)\s*%s.*', '\1', '')
|
let left= substitute(&commentstring, '\([^ \t]*\)\s*%s.*', '\1', '')
|
||||||
let right= substitute(&commentstring, '.*%s\s*\(.*\)', '\1', 'g')
|
let right= substitute(&commentstring, '.*%s\s*\(.*\)', '\1', 'g')
|
||||||
|
|
||||||
call s:MapDelimiters(left,right)
|
call s:MapDelimiters(left,right)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user