From a24c8b79f807fc7405be5858e2360c21e3d9f82d Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 17 Apr 2008 23:26:21 +1200 Subject: [PATCH] added support for liquid --- doc/NERD_commenter.txt | 1 + plugin/NERD_commenter.vim | 2 ++ 2 files changed, 3 insertions(+) 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"