diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index cb6d2a0..73068fc 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -869,6 +869,7 @@ to get illegal syntax when uncommenting them. - added support for services and gitcommit, thx to Christophe Benz for the email - added support for vimperator, thx to A Pontus for the issue + - added support for slice, thx to Stromnov for the issue - set the NERDRemoveExtraSpaces option to 1 by default as the doc states - fixed a bug where extra spaces werent being removed sometimes, thx to Zhang Shuhan for the report diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 678505c..d13ef85 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -696,6 +696,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('%', '') elseif a:filetype == "sl" call s:MapDelimiters('/*','*/') + elseif a:filetype == "slice" + call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "slrnrc" call s:MapDelimiters('%', '') elseif a:filetype == "sm"