diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index c08acab..06038a2 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -865,6 +865,7 @@ to get illegal syntax when uncommenting them. issue. - added support for pyrex/cython, thanks to Greg Jandl for posting the issue. + - added support for liquid templates. 2.1.12 - added support for patran and dakota, thx to Jacobo Diaz for the email diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 44a0c92..9431592 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -444,6 +444,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype == "lilypond" call s:MapDelimiters('%', '') + elseif a:filetype == "liquid" + call s:MapDelimiters('{%', '%}') elseif a:filetype == "lisp" call s:MapDelimitersWithAlternative(';','', '#|', '|#') elseif a:filetype == "lite"