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