summaryrefslogtreecommitdiffstats
path: root/runtime/indent/liquid.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-05-18 13:46:39 +0200
committerBram Moolenaar <Bram@vim.org>2012-05-18 13:46:39 +0200
commit1aeaf8c0e0421f34e51ef674f0c9a182debe77ae (patch)
treeac823e8259ccfd8c536bc34b1d1132e1538f1856 /runtime/indent/liquid.vim
parentdbb4a42cdc63933b11bcb9988d926421b3f5028d (diff)
Updated runtime files.
Diffstat (limited to 'runtime/indent/liquid.vim')
-rw-r--r--runtime/indent/liquid.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/indent/liquid.vim b/runtime/indent/liquid.vim
index 08341b04f6..df43f40cc4 100644
--- a/runtime/indent/liquid.vim
+++ b/runtime/indent/liquid.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2010 May 21
+" Last Change: 2012 May 07
if exists('b:did_indent')
finish
@@ -54,9 +54,8 @@ function! GetLiquidIndent(...)
let line = substitute(line,'\C^\%(\s*{%\s*end\w*\s*%}\)\+','','')
let line .= matchstr(cline,'\C^\%(\s*{%\s*end\w*\s*%}\)\+')
let cline = substitute(cline,'\C^\%(\s*{%\s*end\w*\s*%}\)\+','','')
- let ind += &sw * s:count(line,'{%\s*\%(if\|elsif\|else\|unless\|ifchanged\|case\|when\|for\|tablerow\|capture\)\>')
+ let ind += &sw * s:count(line,'{%\s*\%(if\|elsif\|else\|unless\|ifchanged\|case\|when\|for\|empty\|tablerow\|capture\)\>')
let ind -= &sw * s:count(line,'{%\s*end\%(if\|unless\|ifchanged\|case\|for\|tablerow\|capture\)\>')
- let ind += &sw * s:count(line,'{%\s*\%(elsif\|else\|when\|empty\)\>')
let ind -= &sw * s:count(cline,'{%\s*\%(elsif\|else\|when\|empty\)\>')
let ind -= &sw * s:count(cline,'{%\s*end\w*$')
return ind