From 52758326d3c6a36690e21040492d9feb6dc0fe12 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 11 Sep 2008 08:38:51 -0400 Subject: [PATCH] Indent after trailing do --- indent/haml.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indent/haml.vim b/indent/haml.vim index c1feee0..f282c3c 100644 --- a/indent/haml.vim +++ b/indent/haml.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: HAML " Maintainer: Tim Pope -" Last Change: 2007 Dec 16 +" Last Change: 2008 Sep 11 if exists("b:did_indent") finish @@ -55,7 +55,7 @@ function! GetHamlIndent() return increase elseif line =~ '^:' return increase - elseif line =~ '^'.s:tag.'[=~-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\\)\@!\|.*do |[^|]*|\s*$\)' + elseif line =~ '^'.s:tag.'[=~-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\\)\@!\|.*do\%(\s*|[^|]*|\)\=\s*$\)' return increase elseif line == '-#' return increase